@@ -149,7 +149,7 @@ bool CMICmdCmdBreakInsert::Execute() {
149149 // Ask LLDB for the target to check if we have valid or dummy one.
150150 CMICmnLLDBDebugSessionInfo &rSessionInfo (
151151 CMICmnLLDBDebugSessionInfo::Instance ());
152- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
152+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
153153
154154 m_bBreakpointEnabled = !pArgDisableBreakpoint->GetFound ();
155155 m_bBreakpointIsTemp = pArgTempBreakpoint->GetFound ();
@@ -464,7 +464,7 @@ bool CMICmdCmdBreakDelete::Execute() {
464464 }
465465
466466 bool bSuccess = false ;
467- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
467+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
468468 if (sStoppointInfo .m_eType ==
469469 CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint)
470470 bSuccess = sbTarget.BreakpointDelete (
@@ -601,7 +601,7 @@ bool CMICmdCmdBreakDisable::Execute() {
601601 }
602602 };
603603
604- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
604+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
605605 if (sStoppointInfo .m_eType ==
606606 CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
607607 lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -744,7 +744,7 @@ bool CMICmdCmdBreakEnable::Execute() {
744744 }
745745 };
746746
747- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
747+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
748748 if (sStoppointInfo .m_eType ==
749749 CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
750750 lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -875,7 +875,7 @@ bool CMICmdCmdBreakAfter::Execute() {
875875 return MIstatus::failure;
876876 }
877877
878- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
878+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
879879 if (sStoppointInfo .m_eType ==
880880 CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
881881 lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -1023,7 +1023,7 @@ bool CMICmdCmdBreakCondition::Execute() {
10231023 return MIstatus::failure;
10241024 }
10251025
1026- lldb::SBTarget sbTarget = rSessionInfo.GetTarget ();
1026+ lldb::SBTarget sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
10271027 if (sStoppointInfo .m_eType ==
10281028 CMICmnLLDBDebugSessionInfo::eStoppointType_Breakpoint) {
10291029 lldb::SBBreakpoint breakpoint = sbTarget.FindBreakpointByID (
@@ -1267,7 +1267,7 @@ bool CMICmdCmdBreakWatch::Execute() {
12671267 // Ask LLDB for the target to check if we have valid or dummy one.
12681268 CMICmnLLDBDebugSessionInfo &rSessionInfo (
12691269 CMICmnLLDBDebugSessionInfo::Instance ());
1270- auto sbTarget = rSessionInfo.GetTarget ();
1270+ auto sbTarget = rSessionInfo.GetSelectedOrDummyTarget ();
12711271 auto sbProcess = rSessionInfo.GetProcess ();
12721272 auto sbThread = sbProcess.GetSelectedThread ();
12731273 auto sbFrame = sbThread.GetSelectedFrame ();
0 commit comments