@@ -149,7 +149,7 @@ bool CMICmdCmdBreakInsert::Execute() {
149
149
// Ask LLDB for the target to check if we have valid or dummy one.
150
150
CMICmnLLDBDebugSessionInfo &rSessionInfo (
151
151
CMICmnLLDBDebugSessionInfo::Instance ());
152
- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
152
+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
153
153
154
154
m_bBreakpointEnabled = !pArgDisableBreakpoint->GetFound ();
155
155
m_bBreakpointIsTemp = pArgTempBreakpoint->GetFound ();
@@ -464,7 +464,7 @@ bool CMICmdCmdBreakDelete::Execute() {
464
464
}
465
465
466
466
bool bSuccess = false ;
467
- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
467
+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
468
468
if (sStoppointInfo .m_eType ==
469
469
CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint)
470
470
bSuccess = sbTarget.BreakpointDelete (
@@ -601,7 +601,7 @@ bool CMICmdCmdBreakDisable::Execute() {
601
601
}
602
602
};
603
603
604
- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
604
+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
605
605
if (sStoppointInfo .m_eType ==
606
606
CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
607
607
lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -744,7 +744,7 @@ bool CMICmdCmdBreakEnable::Execute() {
744
744
}
745
745
};
746
746
747
- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
747
+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
748
748
if (sStoppointInfo .m_eType ==
749
749
CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
750
750
lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -875,7 +875,7 @@ bool CMICmdCmdBreakAfter::Execute() {
875
875
return MIstatus::failure;
876
876
}
877
877
878
- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
878
+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
879
879
if (sStoppointInfo .m_eType ==
880
880
CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
881
881
lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -1023,7 +1023,7 @@ bool CMICmdCmdBreakCondition::Execute() {
1023
1023
return MIstatus::failure;
1024
1024
}
1025
1025
1026
- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
1026
+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
1027
1027
if (sStoppointInfo .m_eType ==
1028
1028
CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
1029
1029
lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -1267,7 +1267,7 @@ bool CMICmdCmdBreakWatch::Execute() {
1267
1267
// Ask LLDB for the target to check if we have valid or dummy one.
1268
1268
CMICmnLLDBDebugSessionInfo &rSessionInfo (
1269
1269
CMICmnLLDBDebugSessionInfo::Instance ());
1270
- auto sbTarget = rSessionInfo.GetTarget ();
1270
+ auto sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
1271
1271
auto sbProcess = rSessionInfo.GetProcess ();
1272
1272
auto sbThread = sbProcess.GetSelectedThread ();
1273
1273
auto sbFrame = sbThread.GetSelectedFrame ();
0 commit comments