aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2024-08-02 09:51:47 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2024-08-02 09:53:34 -0700
commitc6ce324fa7fb2438b945fa1205b2a23138327e83 (patch)
tree45ef37185b480db2daf44fbc0e572bf5634ee8e9 /lldb/source/Commands/CommandObjectProcess.cpp
parent1c1b8c20c2d58b6a307e6fdc6db271e81ee8d603 (diff)
downloadllvm-c6ce324fa7fb2438b945fa1205b2a23138327e83.zip
llvm-c6ce324fa7fb2438b945fa1205b2a23138327e83.tar.gz
llvm-c6ce324fa7fb2438b945fa1205b2a23138327e83.tar.bz2
[lldb] Eliminate more Targer* in favor of Target& in CommandObjects (NFC)
The majority of the replaced Target pointers were already used unconditionally and the few that were shouldn't even be NULL.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index e8174ca..28413b7 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -510,7 +510,7 @@ protected:
}
}
- Target *target = m_exe_ctx.GetTargetPtr();
+ Target &target = GetTarget();
BreakpointIDList run_to_bkpt_ids;
// Don't pass an empty run_to_breakpoint list, as Verify will look for the
// default breakpoint.
@@ -538,7 +538,7 @@ protected:
// the breakpoint.location specifications since the latter require
// special handling. We also figure out whether there's at least one
// specifier in the set that is enabled.
- BreakpointList &bkpt_list = target->GetBreakpointList();
+ BreakpointList &bkpt_list = target.GetBreakpointList();
std::unordered_set<break_id_t> bkpts_seen;
std::unordered_set<break_id_t> bkpts_with_locs_seen;
BreakpointIDList with_locs;
@@ -666,7 +666,7 @@ protected:
}
// Now re-enable the breakpoints we disabled:
- BreakpointList &bkpt_list = target->GetBreakpointList();
+ BreakpointList &bkpt_list = target.GetBreakpointList();
for (break_id_t bp_id : bkpts_disabled) {
BreakpointSP bp_sp = bkpt_list.FindBreakpointByID(bp_id);
if (bp_sp)