Index: lldb/source/Target/Platform.cpp =================================================================== --- lldb/source/Target/Platform.cpp +++ lldb/source/Target/Platform.cpp @@ -1822,6 +1822,9 @@ size_t Platform::GetSoftwareBreakpointTrapOpcode(Target &target, BreakpointSite *bp_site) { ArchSpec arch = target.GetArchitecture(); + if (!arch.IsValid()) + return 0; + const uint8_t *trap_opcode = nullptr; size_t trap_opcode_size = 0;