LLDB mainline
ThreadPlanStepOut.cpp
Go to the documentation of this file.
1//===-- ThreadPlanStepOut.cpp ---------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
11#include "lldb/Core/Value.h"
12#include "lldb/Symbol/Block.h"
14#include "lldb/Symbol/Symbol.h"
15#include "lldb/Symbol/Type.h"
16#include "lldb/Target/ABI.h"
17#include "lldb/Target/Process.h"
20#include "lldb/Target/Target.h"
24#include "lldb/Utility/Log.h"
26
27#include <memory>
28
29using namespace lldb;
30using namespace lldb_private;
31
34
35/// Computes the target frame this plan should step out to.
36static StackFrameSP
37ComputeTargetFrame(Thread &thread, uint32_t start_frame_idx,
38 std::vector<StackFrameSP> &skipped_frames) {
39 uint32_t frame_idx = start_frame_idx + 1;
40 StackFrameSP return_frame_sp = thread.GetStackFrameAtIndex(frame_idx);
41 if (!return_frame_sp)
42 return nullptr;
43
44 while (return_frame_sp->IsArtificial() || return_frame_sp->IsHidden()) {
45 skipped_frames.push_back(return_frame_sp);
46
47 frame_idx++;
48 return_frame_sp = thread.GetStackFrameAtIndex(frame_idx);
49
50 // We never expect to see an artificial frame without a regular ancestor.
51 // Defensively refuse to step out.
52 if (!return_frame_sp) {
54 "Can't step out of frame with artificial ancestors");
55 return nullptr;
56 }
57 }
58 return return_frame_sp;
59}
60
61// ThreadPlanStepOut: Step out of the current frame
63 Thread &thread, SymbolContext *context, bool first_insn, bool stop_others,
64 Vote report_stop_vote, Vote report_run_vote, uint32_t frame_idx,
65 LazyBool step_out_avoids_code_without_debug_info,
66 bool continue_to_next_branch, bool gather_return_value)
67 : ThreadPlan(ThreadPlan::eKindStepOut, "Step out", thread, report_stop_vote,
68 report_run_vote),
73 m_calculate_return_value(gather_return_value) {
75 SetupAvoidNoDebug(step_out_avoids_code_without_debug_info);
76
77 m_step_from_insn = thread.GetRegisterContext()->GetPC(0);
78
79 StackFrameSP return_frame_sp =
80 ComputeTargetFrame(thread, frame_idx, m_stepped_past_frames);
81 StackFrameSP immediate_return_from_sp(thread.GetStackFrameAtIndex(frame_idx));
82
83 SetupReturnAddress(return_frame_sp, immediate_return_from_sp, frame_idx,
84 continue_to_next_branch);
85}
86
88 Vote report_stop_vote,
89 Vote report_run_vote, uint32_t frame_idx,
90 bool continue_to_next_branch,
91 bool gather_return_value)
92 : ThreadPlan(ThreadPlan::eKindStepOut, "Step out", thread, report_stop_vote,
93 report_run_vote),
97 m_calculate_return_value(gather_return_value) {
99 m_step_from_insn = thread.GetRegisterContext()->GetPC(0);
100
101 StackFrameSP return_frame_sp = thread.GetStackFrameAtIndex(frame_idx + 1);
102 StackFrameSP immediate_return_from_sp =
103 thread.GetStackFrameAtIndex(frame_idx);
104
105 SetupReturnAddress(return_frame_sp, immediate_return_from_sp, frame_idx,
106 continue_to_next_branch);
107}
108
110 StackFrameSP return_frame_sp, StackFrameSP immediate_return_from_sp,
111 uint32_t frame_idx, bool continue_to_next_branch) {
112 if (!return_frame_sp || !immediate_return_from_sp)
113 return; // we can't do anything here. ValidatePlan() will return false.
114
115 m_step_out_to_id = return_frame_sp->GetStackID();
116 m_immediate_step_from_id = immediate_return_from_sp->GetStackID();
117
118 // If the frame directly below the one we are returning to is inlined, we
119 // have to be a little more careful. It is non-trivial to determine the real
120 // "return code address" for an inlined frame, so we have to work our way to
121 // that frame and then step out.
122 if (immediate_return_from_sp->IsInlined()) {
123 if (frame_idx > 0) {
124 // First queue a plan that gets us to this inlined frame, and when we get
125 // there we'll queue a second plan that walks us out of this frame.
126 m_step_out_to_inline_plan_sp = std::make_shared<ThreadPlanStepOut>(
127 GetThread(), nullptr, false, m_stop_others, eVoteNoOpinion,
128 eVoteNoOpinion, frame_idx - 1, eLazyBoolNo, continue_to_next_branch);
130 ->SetShouldStopHereCallbacks(nullptr, nullptr);
131 m_step_out_to_inline_plan_sp->SetPrivate(true);
132 } else {
133 // If we're already at the inlined frame we're stepping through, then
134 // just do that now.
136 }
137 } else {
138 // Find the return address and set a breakpoint there:
139 // FIXME - can we do this more securely if we know first_insn?
140
141 Address return_address(return_frame_sp->GetFrameCodeAddress());
142 if (continue_to_next_branch) {
143 SymbolContext return_address_sc;
144 AddressRange range;
145 Address return_address_decr_pc = return_address;
146 if (return_address_decr_pc.GetOffset() > 0)
147 return_address_decr_pc.Slide(-1);
148
149 return_address_decr_pc.CalculateSymbolContext(
150 &return_address_sc, lldb::eSymbolContextLineEntry);
151 if (return_address_sc.line_entry.IsValid()) {
152 const bool include_inlined_functions = false;
153 range = return_address_sc.line_entry.GetSameLineContiguousAddressRange(
154 include_inlined_functions);
155 if (range.GetByteSize() > 0) {
156 return_address = m_process.AdvanceAddressToNextBranchInstruction(
157 return_address, range);
158 }
159 }
160 }
161 m_return_addr = return_address.GetLoadAddress(&m_process.GetTarget());
162
164 return;
165
166 // Perform some additional validation on the return address.
167 uint32_t permissions = 0;
168 Log *log = GetLog(LLDBLog::Step);
169 if (!m_process.GetLoadAddressPermissions(m_return_addr, permissions)) {
170 LLDB_LOGF(log, "ThreadPlanStepOut(%p): Return address (0x%" PRIx64
171 ") permissions not found.", static_cast<void *>(this),
173 } else if (!(permissions & ePermissionsExecutable)) {
174 m_constructor_errors.Printf("Return address (0x%" PRIx64
175 ") did not point to executable memory.",
177 LLDB_LOGF(log, "ThreadPlanStepOut(%p): %s", static_cast<void *>(this),
178 m_constructor_errors.GetData());
179 return;
180 }
181
182 Breakpoint *return_bp =
183 GetTarget().CreateBreakpoint(m_return_addr, true, false).get();
184
185 if (return_bp != nullptr) {
186 if (return_bp->IsHardware() && !return_bp->HasResolvedLocations())
188 return_bp->SetThreadID(m_tid);
189 m_return_bp_id = return_bp->GetID();
190 return_bp->SetBreakpointKind("step-out");
191 }
192
193 if (immediate_return_from_sp) {
194 const SymbolContext &sc =
195 immediate_return_from_sp->GetSymbolContext(eSymbolContextFunction);
196 if (sc.function) {
198 }
199 }
200 }
201}
202
204 LazyBool step_out_avoids_code_without_debug_info) {
205 bool avoid_nodebug = true;
206 switch (step_out_avoids_code_without_debug_info) {
207 case eLazyBoolYes:
208 avoid_nodebug = true;
209 break;
210 case eLazyBoolNo:
211 avoid_nodebug = false;
212 break;
214 avoid_nodebug = GetThread().GetStepOutAvoidsNoDebug();
215 break;
216 }
217 if (avoid_nodebug)
219 else
221}
222
224 Thread &thread = GetThread();
226 thread.QueueThreadPlan(m_step_out_to_inline_plan_sp, false);
228 thread.QueueThreadPlan(m_step_through_inline_plan_sp, false);
229}
230
235
238 if (level == lldb::eDescriptionLevelBrief)
239 s->PutCString("step out");
240 else {
242 s->PutCString("Stepping out to inlined frame so we can walk through it.");
244 s->PutCString("Stepping out by stepping through inlined function.");
245 else {
246 s->PutCString("Stepping out from ");
247 Address tmp_address;
248 if (tmp_address.SetLoadAddress(m_step_from_insn, &GetTarget())) {
251 } else {
252 s->Printf("address 0x%" PRIx64 "", (uint64_t)m_step_from_insn);
253 }
254
255 // FIXME: find some useful way to present the m_return_id, since there may
256 // be multiple copies of the
257 // same function on the stack.
258
259 s->PutCString(" returning to frame at ");
260 if (tmp_address.SetLoadAddress(m_return_addr, &GetTarget())) {
263 } else {
264 s->Printf("address 0x%" PRIx64 "", (uint64_t)m_return_addr);
265 }
266
267 if (level == eDescriptionLevelVerbose)
268 s->Printf(" using breakpoint site %d", m_return_bp_id);
269 }
270 }
271
272 if (m_stepped_past_frames.empty())
273 return;
274
275 s->PutCString("\n");
276 for (StackFrameSP frame_sp : m_stepped_past_frames) {
277 s->PutCString("Stepped out past: ");
278 frame_sp->DumpUsingSettingsFormat(s);
279 }
280}
281
284 return m_step_out_to_inline_plan_sp->ValidatePlan(error);
285
287 return m_step_through_inline_plan_sp->ValidatePlan(error);
288
290 if (error)
291 error->PutCString(
292 "Could not create hardware breakpoint for thread plan.");
293 return false;
294 }
295
297 if (error) {
298 error->PutCString("Could not create return address breakpoint.");
299 if (m_constructor_errors.GetSize() > 0) {
300 error->PutCString(" ");
301 error->PutCString(m_constructor_errors.GetString());
302 }
303 }
304 return false;
305 }
306
307 return true;
308}
309
311 // If the step out plan is done, then we just need to step through the
312 // inlined frame.
314 return m_step_out_to_inline_plan_sp->MischiefManaged();
316 if (m_step_through_inline_plan_sp->MischiefManaged()) {
319 return true;
320 } else
321 return false;
322 } else if (m_step_out_further_plan_sp) {
323 return m_step_out_further_plan_sp->MischiefManaged();
324 }
325
326 // We don't explain signals or breakpoints (breakpoints that handle stepping
327 // in or out will be handled by a child plan.
328
329 StopInfoSP stop_info_sp = GetPrivateStopInfo();
330 if (stop_info_sp) {
331 StopReason reason = stop_info_sp->GetStopReason();
332 if (reason == eStopReasonBreakpoint) {
333 // If this is OUR breakpoint, we're fine, otherwise we don't know why
334 // this happened...
335 BreakpointSiteSP site_sp(
336 m_process.GetBreakpointSiteList().FindByID(stop_info_sp->GetValue()));
337 if (site_sp && site_sp->IsBreakpointAtThisSite(m_return_bp_id)) {
338 bool done;
339
340 StackID frame_zero_id =
341 GetThread().GetStackFrameAtIndex(0)->GetStackID();
342
343 if (m_step_out_to_id == frame_zero_id)
344 done = true;
345 else if (m_step_out_to_id.IsYoungerThan(frame_zero_id)) {
346 // Either we stepped past the breakpoint, or the stack ID calculation
347 // was incorrect and we should probably stop.
348 done = true;
349 } else {
350 done = (m_immediate_step_from_id.IsYoungerThan(frame_zero_id));
351 }
352
353 if (done) {
357 }
358 }
359
360 // If the thread also hit a user breakpoint on its way out, the plan is
361 // done but should not claim to explain the stop. It is more important
362 // to report the user breakpoint than the step out completion.
363 if (!site_sp->ContainsUserBreakpointForThread(GetThread()))
364 return true;
365 }
366 return false;
367 } else if (IsUsuallyUnexplainedStopReason(reason))
368 return false;
369 else
370 return true;
371 }
372 return true;
373}
374
376 if (IsPlanComplete())
377 return true;
378
379 bool done = false;
381 if (m_step_out_to_inline_plan_sp->MischiefManaged()) {
382 // Now step through the inlined stack we are in:
383 if (QueueInlinedStepPlan(true)) {
384 // If we can't queue a plan to do this, then just call ourselves done.
386 SetPlanComplete(false);
387 return true;
388 } else
389 done = true;
390 } else
391 return m_step_out_to_inline_plan_sp->ShouldStop(event_ptr);
393 if (m_step_through_inline_plan_sp->MischiefManaged())
394 done = true;
395 else
396 return m_step_through_inline_plan_sp->ShouldStop(event_ptr);
397 } else if (m_step_out_further_plan_sp) {
398 if (m_step_out_further_plan_sp->MischiefManaged()) {
400 done = true;
401 } else
402 return m_step_out_further_plan_sp->ShouldStop(event_ptr);
403 }
404
405 if (!done) {
406 StopInfoSP stop_info_sp = GetPrivateStopInfo();
407 if (stop_info_sp && stop_info_sp->GetStopReason() == eStopReasonBreakpoint) {
408 StackID frame_zero_id = GetThread().GetStackFrameAtIndex(0)->GetStackID();
409 done = !(frame_zero_id.IsYoungerThan(m_step_out_to_id));
410 }
411 }
412
413 // The normal step out computations think we are done, so all we need to do
414 // is consult the ShouldStopHere, and we are done.
415
416 if (done) {
420 } else {
423 done = false;
424 }
425 }
426
427 return done;
428}
429
431
433
435 bool current_plan) {
437 return true;
438
440 return false;
441
442 if (current_plan) {
444 if (return_bp != nullptr)
445 return_bp->SetEnabled(true);
446 }
447 return true;
448}
449
453 if (return_bp != nullptr)
454 return_bp->SetEnabled(false);
455 }
456
457 return true;
458}
459
461 if (IsPlanComplete()) {
462 // Did I reach my breakpoint? If so I'm done.
463 //
464 // I also check the stack depth, since if we've blown past the breakpoint
465 // for some
466 // reason and we're now stopping for some other reason altogether, then
467 // we're done with this step out operation.
468
469 Log *log = GetLog(LLDBLog::Step);
470 LLDB_LOGF(log, "Completed step out plan.");
474 }
475
477 return true;
478 } else {
479 return false;
480 }
481}
482
484 // Now figure out the range of this inlined block, and set up a "step through
485 // range" plan for that. If we've been provided with a context, then use the
486 // block in that context.
487 Thread &thread = GetThread();
488 StackFrameSP immediate_return_from_sp(thread.GetStackFrameAtIndex(0));
489 if (!immediate_return_from_sp)
490 return false;
491
492 Log *log = GetLog(LLDBLog::Step);
493 if (log) {
494 StreamString s;
495 immediate_return_from_sp->Dump(&s, true, false);
496 LLDB_LOGF(log, "Queuing inlined frame to step past: %s.", s.GetData());
497 }
498
499 Block *from_block = immediate_return_from_sp->GetFrameBlock();
500 if (from_block) {
501 Block *inlined_block = from_block->GetContainingInlinedBlock();
502 if (inlined_block) {
503 size_t num_ranges = inlined_block->GetNumRanges();
504 AddressRange inline_range;
505 if (inlined_block->GetRangeAtIndex(0, inline_range)) {
506 SymbolContext inlined_sc;
507 inlined_block->CalculateSymbolContext(&inlined_sc);
508 inlined_sc.target_sp = GetTarget().shared_from_this();
509 RunMode run_mode =
511 const LazyBool avoid_no_debug = eLazyBoolNo;
512
514 std::make_shared<ThreadPlanStepOverRange>(
515 thread, inline_range, inlined_sc, run_mode, avoid_no_debug);
516 ThreadPlanStepOverRange *step_through_inline_plan_ptr =
517 static_cast<ThreadPlanStepOverRange *>(
519 m_step_through_inline_plan_sp->SetPrivate(true);
520
521 step_through_inline_plan_ptr->SetOkayToDiscard(true);
522 StreamString errors;
523 if (!step_through_inline_plan_ptr->ValidatePlan(&errors)) {
524 // FIXME: Log this failure.
525 delete step_through_inline_plan_ptr;
526 return false;
527 }
528
529 for (size_t i = 1; i < num_ranges; i++) {
530 if (inlined_block->GetRangeAtIndex(i, inline_range))
531 step_through_inline_plan_ptr->AddRange(inline_range);
532 }
533
534 if (queue_now)
535 thread.QueueThreadPlan(m_step_through_inline_plan_sp, false);
536 return true;
537 }
538 }
539 }
540
541 return false;
542}
543
546 return;
547
549 return;
550
551 if (m_immediate_step_from_function != nullptr) {
552 CompilerType return_compiler_type =
553 m_immediate_step_from_function->GetCompilerType()
554 .GetFunctionReturnType();
555 if (return_compiler_type) {
556 lldb::ABISP abi_sp = m_process.GetABI();
557 if (abi_sp)
559 abi_sp->GetReturnValueObject(GetThread(), return_compiler_type);
560 }
561 }
562}
563
565 // If we are still lower on the stack than the frame we are returning to,
566 // then there's something for us to do. Otherwise, we're stale.
567
568 StackID frame_zero_id = GetThread().GetStackFrameAtIndex(0)->GetStackID();
569 return !(frame_zero_id.IsYoungerThan(m_step_out_to_id));
570}
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOG(log,...)
The LLDB_LOG* macros defined below are the way to emit log messages.
Definition Log.h:375
#define LLDB_LOGF(log,...)
Definition Log.h:389
static StackFrameSP ComputeTargetFrame(Thread &thread, uint32_t start_frame_idx, std::vector< StackFrameSP > &skipped_frames)
Computes the target frame this plan should step out to.
A section + offset based address range class.
lldb::addr_t GetByteSize() const
Get accessor for the byte size of this range.
A section + offset based address class.
Definition Address.h:62
lldb::addr_t GetLoadAddress(Target *target) const
Get the load address.
Definition Address.cpp:301
bool SetLoadAddress(lldb::addr_t load_addr, Target *target, bool allow_section_end=false)
Set the address to represent load_addr.
Definition Address.cpp:1028
uint32_t CalculateSymbolContext(SymbolContext *sc, lldb::SymbolContextItem resolve_scope=lldb::eSymbolContextEverything) const
Reconstruct a symbol context from an address.
Definition Address.cpp:819
@ DumpStyleResolvedDescription
Display the details about what an address resolves to.
Definition Address.h:104
@ DumpStyleLoadAddress
Display as the load address (if resolved).
Definition Address.h:99
bool Slide(int64_t offset)
Definition Address.h:446
bool Dump(Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, DumpStyle fallback_style=DumpStyleInvalid, uint32_t addr_byte_size=UINT32_MAX, bool all_ranges=false, std::optional< Stream::HighlightSettings > settings=std::nullopt) const
Dump a description of this object to a Stream.
Definition Address.cpp:396
lldb::addr_t GetOffset() const
Get the section relative offset value.
Definition Address.h:329
A class that describes a single lexical block.
Definition Block.h:41
void CalculateSymbolContext(SymbolContext *sc) override
Reconstruct the object's symbol context into sc.
Definition Block.cpp:137
Block * GetContainingInlinedBlock()
Get the inlined block that contains this block.
Definition Block.cpp:206
bool GetRangeAtIndex(uint32_t range_idx, AddressRange &range)
Definition Block.cpp:294
size_t GetNumRanges() const
Definition Block.h:322
General Outline: A breakpoint has four main parts, a filter, a resolver, the list of breakpoint locat...
Definition Breakpoint.h:83
void SetBreakpointKind(const char *kind)
Set the "kind" description for a breakpoint.
Definition Breakpoint.h:484
bool HasResolvedLocations() const
Return whether this breakpoint has any resolved locations.
void SetThreadID(lldb::tid_t thread_id)
Set the valid thread to be checked when the breakpoint is hit.
void SetEnabled(bool enable) override
If enable is true, enable the breakpoint, if false disable it.
Generic representation of a type in a programming language.
ValueType Clear(ValueType mask=~static_cast< ValueType >(0))
Clear one or more flags.
Definition Flags.h:61
ValueType Set(ValueType mask)
Set one or more flags by logical OR'ing mask with the current flags.
Definition Flags.h:73
bool IsYoungerThan(const StackID &other) const
Returns true if this StackID corresponds to a frame younger (i.e.
Definition StackID.cpp:72
lldb::break_id_t GetID() const
Definition Stoppoint.cpp:22
const char * GetData() const
A stream class that can stream formatted output to a file.
Definition Stream.h:28
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Definition Stream.cpp:134
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
Definition Stream.cpp:63
Defines a symbol context baton that can be handed other debug core functions.
Function * function
The Function for a given query.
lldb::TargetSP target_sp
The Target for a given query.
LineEntry line_entry
The LineEntry for a given query.
lldb::BreakpointSP GetBreakpointByID(lldb::break_id_t break_id)
Definition Target.cpp:438
bool RemoveBreakpointByID(lldb::break_id_t break_id)
Definition Target.cpp:1207
lldb::BreakpointSP CreateBreakpoint(const FileSpecList *containingModules, const FileSpec &file, uint32_t line_no, uint32_t column, lldb::addr_t offset, LazyBool check_inlines, LazyBool skip_prologue, bool internal, bool request_hardware, LazyBool move_to_nearest_code)
Definition Target.cpp:505
virtual lldb::ThreadPlanSP QueueStepOutFromHerePlan(Flags &flags, lldb::FrameComparison operation, Status &status)
bool InvokeShouldStopHereCallback(lldb::FrameComparison operation, Status &status)
void GetDescription(Stream *s, lldb::DescriptionLevel level) override
Print a description of this thread to the stream s.
lldb::ValueObjectSP m_return_valobj_sp
std::vector< lldb::StackFrameSP > m_stepped_past_frames
void SetupReturnAddress(lldb::StackFrameSP return_frame_sp, lldb::StackFrameSP immediate_return_from_sp, uint32_t frame_idx, bool continue_to_next_branch)
bool QueueInlinedStepPlan(bool queue_now)
lldb::StateType GetPlanRunState() override
lldb::ThreadPlanSP m_step_out_further_plan_sp
bool DoWillResume(lldb::StateType resume_state, bool current_plan) override
void SetupAvoidNoDebug(LazyBool step_out_avoids_code_without_debug_info)
ThreadPlanStepOut(Thread &thread, SymbolContext *addr_context, bool first_insn, bool stop_others, Vote report_stop_vote, Vote report_run_vote, uint32_t frame_idx, LazyBool step_out_avoids_code_without_debug_info, bool continue_to_next_branch=false, bool gather_return_value=true)
Creates a thread plan to step out from frame_idx, skipping parent frames if they are artificial or hi...
bool ValidatePlan(Stream *error) override
Returns whether this plan could be successfully created.
bool DoPlanExplainsStop(Event *event_ptr) override
lldb::ThreadPlanSP m_step_through_inline_plan_sp
bool ShouldStop(Event *event_ptr) override
lldb::ThreadPlanSP m_step_out_to_inline_plan_sp
bool ValidatePlan(Stream *error) override
Returns whether this plan could be successfully created.
void AddRange(const AddressRange &new_range)
ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote)
bool IsUsuallyUnexplainedStopReason(lldb::StopReason)
void SetPlanComplete(bool success=true)
Thread & GetThread()
Returns the Thread that is using this thread plan.
void SetOkayToDiscard(bool value)
Definition ThreadPlan.h:427
virtual bool MischiefManaged()
lldb::StopInfoSP GetPrivateStopInfo()
Definition ThreadPlan.h:544
bool GetStepOutAvoidsNoDebug() const
Definition Thread.cpp:141
virtual lldb::StackFrameSP GetStackFrameAtIndex(uint32_t idx)
Definition Thread.h:435
#define LLDB_INVALID_BREAK_ID
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
Definition Log.h:338
std::shared_ptr< lldb_private::ABI > ABISP
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
std::shared_ptr< lldb_private::BreakpointSite > BreakpointSiteSP
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelBrief
@ eDescriptionLevelVerbose
StateType
Process and Thread States.
@ eStateRunning
Process or thread is running and can't be examined.
std::shared_ptr< lldb_private::StopInfo > StopInfoSP
StopReason
Thread stop reasons.
@ eStopReasonBreakpoint
RunMode
Thread Run Modes.
AddressRange GetSameLineContiguousAddressRange(bool include_inlined_functions) const
Give the range for this LineEntry + any additional LineEntries for this same source line that are con...
bool IsValid() const
Check if a line entry object is valid.
Definition LineEntry.cpp:35