LLDB mainline
Block.cpp
Go to the documentation of this file.
1//===-- Block.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
9#include "lldb/Symbol/Block.h"
10
11#include "lldb/Core/Module.h"
12#include "lldb/Core/Section.h"
17#include "lldb/Utility/Log.h"
18
19#include <memory>
20
21using namespace lldb;
22using namespace lldb_private;
23
24Block::Block(Function &function, user_id_t function_uid)
25 : Block(function_uid, function) {}
26
30
31Block::~Block() = default;
32
34 lldb::DescriptionLevel level, Target *target) const {
35 *s << "id = " << ((const UserID &)*this);
36
37 size_t num_ranges = m_ranges.GetSize();
38 if (num_ranges > 0) {
39
40 addr_t base_addr = LLDB_INVALID_ADDRESS;
41 if (target)
42 base_addr = function->GetAddress().GetLoadAddress(target);
43 if (base_addr == LLDB_INVALID_ADDRESS)
44 base_addr = function->GetAddress().GetFileAddress();
45
46 s->Printf(", range%s = ", num_ranges > 1 ? "s" : "");
47 for (size_t i = 0; i < num_ranges; ++i) {
48 const Range &range = m_ranges.GetEntryRef(i);
49 DumpAddressRange(s->AsRawOstream(), base_addr + range.GetRangeBase(),
50 base_addr + range.GetRangeEnd(), 4);
51 }
52 }
53
54 if (m_inlineInfoSP.get() != nullptr) {
55 bool show_fullpaths = (level == eDescriptionLevelVerbose);
56 m_inlineInfoSP->Dump(s, show_fullpaths);
57 }
58}
59
60void Block::Dump(Stream *s, addr_t base_addr, int32_t depth,
61 bool show_context) const {
62 if (depth < 0) {
63 Block *parent = GetParent();
64 if (parent) {
65 // We have a depth that is less than zero, print our parent blocks first
66 parent->Dump(s, base_addr, depth + 1, show_context);
67 }
68 }
69
70 s->Printf("%p: ", static_cast<const void *>(this));
71 s->Indent();
72 *s << "Block" << static_cast<const UserID &>(*this);
73 const Block *parent_block = GetParent();
74 if (parent_block) {
75 s->Printf(", parent = {0x%8.8" PRIx64 "}", parent_block->GetID());
76 }
77 if (m_inlineInfoSP.get() != nullptr) {
78 bool show_fullpaths = false;
79 m_inlineInfoSP->Dump(s, show_fullpaths);
80 }
81
82 if (!m_ranges.IsEmpty()) {
83 *s << ", ranges =";
84
85 size_t num_ranges = m_ranges.GetSize();
86 for (size_t i = 0; i < num_ranges; ++i) {
87 const Range &range = m_ranges.GetEntryRef(i);
88 if (parent_block != nullptr && !parent_block->Contains(range))
89 *s << '!';
90 else
91 *s << ' ';
92 DumpAddressRange(s->AsRawOstream(), base_addr + range.GetRangeBase(),
93 base_addr + range.GetRangeEnd(), 4);
94 }
95 }
96 s->EOL();
97
98 if (depth > 0) {
99 s->IndentMore();
100
101 if (m_variable_list_sp.get()) {
102 m_variable_list_sp->Dump(s, show_context);
103 }
104
105 collection::const_iterator pos, end = m_children.end();
106 for (pos = m_children.begin(); pos != end; ++pos)
107 (*pos)->Dump(s, base_addr, depth - 1, show_context);
108
109 s->IndentLess();
110 }
111}
112
114 if (block_id == GetID())
115 return this;
116
117 Block *matching_block = nullptr;
118 collection::const_iterator pos, end = m_children.end();
119 for (pos = m_children.begin(); pos != end; ++pos) {
120 matching_block = (*pos)->FindBlockByID(block_id);
121 if (matching_block)
122 break;
123 }
124 return matching_block;
125}
126
128 if (!Contains(offset))
129 return nullptr;
130 for (const BlockSP &block_sp : m_children) {
131 if (Block *block = block_sp->FindInnermostBlockByOffset(offset))
132 return block;
133 }
134 return this;
135}
136
138 m_parent_scope.CalculateSymbolContext(sc);
139 sc->block = this;
140}
141
143 return m_parent_scope.CalculateSymbolContextModule();
144}
145
147 return m_parent_scope.CalculateSymbolContextCompileUnit();
148}
149
151 return m_parent_scope.CalculateSymbolContextFunction();
152}
153
155
157 // Blocks always have an enclosing function because their parent is either a
158 // function or a block (which has a parent, inductively).
160 assert(function);
161 return *function;
162}
163
166 s->Printf(", Block{0x%8.8" PRIx64 "}", GetID());
167}
168
170 if (!m_ranges.IsEmpty()) {
171 size_t num_ranges = m_ranges.GetSize();
172 for (size_t i = 0; i < num_ranges; ++i) {
173 const Range &range = m_ranges.GetEntryRef(i);
174 DumpAddressRange(s->AsRawOstream(), base_addr + range.GetRangeBase(),
175 base_addr + range.GetRangeEnd(), 4);
176 }
177 }
178}
179
180bool Block::Contains(addr_t range_offset) const {
181 return m_ranges.FindEntryThatContains(range_offset) != nullptr;
182}
183
184bool Block::Contains(const Block *block) const {
185 if (this == block)
186 return false; // This block doesn't contain itself...
187
188 // Walk the parent chain for "block" and see if any if them match this block
189 const Block *block_parent;
190 for (block_parent = block->GetParent(); block_parent != nullptr;
191 block_parent = block_parent->GetParent()) {
192 if (this == block_parent)
193 return true; // One of the parents of "block" is this object!
194 }
195 return false;
196}
197
198bool Block::Contains(const Range &range) const {
199 return m_ranges.FindEntryThatContains(range) != nullptr;
200}
201
203 return m_parent_scope.CalculateSymbolContextBlock();
204}
205
208 return this;
209 return GetInlinedParent();
210}
211
213 Block *parent_block = GetParent();
214 if (parent_block) {
215 if (parent_block->GetInlinedFunctionInfo())
216 return parent_block;
217 else
218 return parent_block->GetInlinedParent();
219 }
220 return nullptr;
221}
222
224 const Declaration &find_call_site) {
225 Block *inlined_block = GetContainingInlinedBlock();
226
227 while (inlined_block) {
228 const auto *function_info = inlined_block->GetInlinedFunctionInfo();
229
230 if (function_info &&
231 function_info->GetCallSite().FileAndLineEqual(find_call_site, true))
232 return inlined_block;
233 inlined_block = inlined_block->GetInlinedParent();
234 }
235 return nullptr;
236}
237
238bool Block::GetRangeContainingOffset(const addr_t offset, Range &range) {
239 const Range *range_ptr = m_ranges.FindEntryThatContains(offset);
240 if (range_ptr) {
241 range = *range_ptr;
242 return true;
243 }
244 range.Clear();
245 return false;
246}
247
249 AddressRange &range) {
250 Function &function = GetFunction();
251 if (uint32_t idx = GetRangeIndexContainingAddress(addr); idx != UINT32_MAX) {
252 const Range *range_ptr = m_ranges.GetEntryAtIndex(idx);
253 assert(range_ptr);
254
255 Address func_addr = function.GetAddress();
256 range.GetBaseAddress() =
257 Address(func_addr.GetFileAddress() + range_ptr->GetRangeBase(),
258 func_addr.GetModule()->GetSectionList());
259 range.SetByteSize(range_ptr->GetByteSize());
260 return true;
261 }
262 range.Clear();
263 return false;
264}
265
267 Target &target, AddressRange &range) {
268 Address load_address;
269 load_address.SetLoadAddress(load_addr, &target);
270 AddressRange containing_range;
271 return GetRangeContainingAddress(load_address, containing_range);
272}
273
275 Function &function = GetFunction();
276
277 const Address &func_addr = function.GetAddress();
278 if (addr.GetModule() != func_addr.GetModule())
279 return UINT32_MAX;
280
281 const addr_t file_addr = addr.GetFileAddress();
282 const addr_t func_file_addr = func_addr.GetFileAddress();
283 return m_ranges.FindEntryIndexThatContains(file_addr - func_file_addr);
284}
285
286static AddressRange ToAddressRange(const Address &func_addr,
287 const Block::Range &block_range) {
288 assert(func_addr.GetModule());
289 return AddressRange(func_addr.GetFileAddress() + block_range.base,
290 block_range.size,
291 func_addr.GetModule()->GetSectionList());
292}
293
294bool Block::GetRangeAtIndex(uint32_t range_idx, AddressRange &range) {
295 if (range_idx >= m_ranges.GetSize())
296 return false;
297
298 Address addr = GetFunction().GetAddress();
299 if (!addr.GetModule())
300 return false;
301
302 range = ToAddressRange(addr, m_ranges.GetEntryRef(range_idx));
303 return true;
304}
305
307 Address addr = GetFunction().GetAddress();
308 if (!addr.GetModule())
309 return {};
310
311 AddressRanges ranges;
312 for (size_t i = 0, e = m_ranges.GetSize(); i < e; ++i)
313 ranges.push_back(ToAddressRange(addr, m_ranges.GetEntryRef(i)));
314 return ranges;
315}
316
318 Address func_addr = GetFunction().GetAddress();
319 if (!func_addr.GetModule() || m_ranges.IsEmpty())
320 return false;
321
322 addr = ToAddressRange(func_addr, m_ranges.GetEntryRef(0)).GetBaseAddress();
323 return true;
324}
325
327 m_ranges.Sort();
328 m_ranges.CombineConsecutiveRanges();
329}
330
331void Block::AddRange(const Range &range) {
332 Block *parent_block = GetParent();
333 if (parent_block && !parent_block->Contains(range)) {
335 if (log) {
336 ModuleSP module_sp(m_parent_scope.CalculateSymbolContextModule());
337 Function &function = GetFunction();
338 const addr_t function_file_addr = function.GetAddress().GetFileAddress();
339 const addr_t block_start_addr = function_file_addr + range.GetRangeBase();
340 const addr_t block_end_addr = function_file_addr + range.GetRangeEnd();
341 Type *func_type = function.GetType();
342
343 const Declaration &func_decl = func_type->GetDeclaration();
344 if (func_decl.GetLine()) {
345 LLDB_LOGF(log,
346 "warning: %s:%u block {0x%8.8" PRIx64
347 "} has range[%u] [0x%" PRIx64 " - 0x%" PRIx64
348 ") which is not contained in parent block {0x%8.8" PRIx64
349 "} in function {0x%8.8" PRIx64 "} from %s",
350 func_decl.GetFile().GetPath().c_str(), func_decl.GetLine(),
351 GetID(), (uint32_t)m_ranges.GetSize(), block_start_addr,
352 block_end_addr, parent_block->GetID(), function.GetID(),
353 module_sp->GetFileSpec().GetPath().c_str());
354 } else {
355 LLDB_LOGF(log,
356 "warning: block {0x%8.8" PRIx64 "} has range[%u] [0x%" PRIx64
357 " - 0x%" PRIx64
358 ") which is not contained in parent block {0x%8.8" PRIx64
359 "} in function {0x%8.8" PRIx64 "} from %s",
360 GetID(), (uint32_t)m_ranges.GetSize(), block_start_addr,
361 block_end_addr, parent_block->GetID(), function.GetID(),
362 module_sp->GetFileSpec().GetPath().c_str());
363 }
364 }
365 parent_block->AddRange(range);
366 }
367 m_ranges.Append(range);
368}
369
370// Return the current number of bytes that this object occupies in memory
371size_t Block::MemorySize() const {
372 size_t mem_size = sizeof(Block) + m_ranges.GetSize() * sizeof(Range);
373 if (m_inlineInfoSP.get())
374 mem_size += m_inlineInfoSP->MemorySize();
375 if (m_variable_list_sp.get())
376 mem_size += m_variable_list_sp->MemorySize();
377 return mem_size;
378}
379
381 m_children.push_back(std::shared_ptr<Block>(new Block(uid, *this)));
382 return m_children.back();
383}
384
385void Block::SetInlinedFunctionInfo(const char *name, const char *mangled,
386 const Declaration *decl_ptr,
387 const Declaration *call_decl_ptr) {
388 m_inlineInfoSP = std::make_shared<InlineFunctionInfo>(name, mangled, decl_ptr,
389 call_decl_ptr);
390}
391
394 if (m_variable_list_sp.get() == nullptr && can_create) {
396 SymbolContext sc;
398 assert(sc.module_sp);
399 sc.module_sp->GetSymbolFile()->ParseVariablesForContext(sc);
400 }
401 }
402 return m_variable_list_sp;
403}
404
405uint32_t
406Block::AppendBlockVariables(bool can_create, bool get_child_block_variables,
407 bool stop_if_child_block_is_inlined_function,
408 const std::function<bool(Variable *)> &filter,
409 VariableList *variable_list) {
410 uint32_t num_variables_added = 0;
411 VariableList *block_var_list = GetBlockVariableList(can_create).get();
412 if (block_var_list) {
413 for (const VariableSP &var_sp : *block_var_list) {
414 if (filter(var_sp.get())) {
415 num_variables_added++;
416 variable_list->AddVariable(var_sp);
417 }
418 }
419 }
420
421 if (get_child_block_variables) {
422 collection::const_iterator pos, end = m_children.end();
423 for (pos = m_children.begin(); pos != end; ++pos) {
424 Block *child_block = pos->get();
425 if (!stop_if_child_block_is_inlined_function ||
426 child_block->GetInlinedFunctionInfo() == nullptr) {
427 num_variables_added += child_block->AppendBlockVariables(
428 can_create, get_child_block_variables,
429 stop_if_child_block_is_inlined_function, filter, variable_list);
430 }
431 }
432 }
433 return num_variables_added;
434}
435
436uint32_t Block::AppendVariables(bool can_create, bool get_parent_variables,
437 bool stop_if_block_is_inlined_function,
438 const std::function<bool(Variable *)> &filter,
439 VariableList *variable_list) {
440 uint32_t num_variables_added = 0;
441 VariableListSP variable_list_sp(GetBlockVariableList(can_create));
442
443 bool is_inlined_function = GetInlinedFunctionInfo() != nullptr;
444 if (variable_list_sp) {
445 for (size_t i = 0; i < variable_list_sp->GetSize(); ++i) {
446 VariableSP variable = variable_list_sp->GetVariableAtIndex(i);
447 if (filter(variable.get())) {
448 num_variables_added++;
449 variable_list->AddVariable(variable);
450 }
451 }
452 }
453
454 if (get_parent_variables) {
455 if (stop_if_block_is_inlined_function && is_inlined_function)
456 return num_variables_added;
457
458 Block *parent_block = GetParent();
459 if (parent_block)
460 num_variables_added += parent_block->AppendVariables(
461 can_create, get_parent_variables, stop_if_block_is_inlined_function,
462 filter, variable_list);
463 }
464 return num_variables_added;
465}
466
468 if (ModuleSP module_sp = CalculateSymbolContextModule())
469 return module_sp->GetSymbolFile();
470 return nullptr;
471}
472
474 if (SymbolFile *sym_file = GetSymbolFile())
475 return sym_file->GetDeclContextForUID(GetID());
476 return CompilerDeclContext();
477}
478
479void Block::SetBlockInfoHasBeenParsed(bool b, bool set_children) {
481 if (set_children) {
483 collection::const_iterator pos, end = m_children.end();
484 for (pos = m_children.begin(); pos != end; ++pos)
485 (*pos)->SetBlockInfoHasBeenParsed(b, true);
486 }
487}
488
489void Block::SetDidParseVariables(bool b, bool set_children) {
491 if (set_children) {
492 collection::const_iterator pos, end = m_children.end();
493 for (pos = m_children.begin(); pos != end; ++pos)
494 (*pos)->SetDidParseVariables(b, true);
495 }
496}
497
499 if (Block *parent_block = GetParent())
500 return parent_block->GetSiblingForChild(this);
501 return nullptr;
502}
503
504// A parent of child blocks can be asked to find a sibling block given
505// one of its child blocks
506Block *Block::GetSiblingForChild(const Block *child_block) const {
507 if (!m_children.empty()) {
508 collection::const_iterator pos, end = m_children.end();
509 for (pos = m_children.begin(); pos != end; ++pos) {
510 if (pos->get() == child_block) {
511 if (++pos != end)
512 return pos->get();
513 break;
514 }
515 }
516 }
517 return nullptr;
518}
static AddressRange ToAddressRange(const Address &func_addr, const Block::Range &block_range)
Definition Block.cpp:286
#define LLDB_LOGF(log,...)
Definition Log.h:376
A section + offset based address range class.
Address & GetBaseAddress()
Get accessor for the base address of the range.
void Clear()
Clear the object's state.
void SetByteSize(lldb::addr_t byte_size)
Set 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:1035
lldb::ModuleSP GetModule() const
Get accessor for the module for this address.
Definition Address.cpp:273
lldb::addr_t GetFileAddress() const
Get the file address.
Definition Address.cpp:281
RangeList::Entry Range
Definition Block.h:44
lldb::VariableListSP m_variable_list_sp
The variable list for all local, static and parameter variables scoped to this block.
Definition Block.h:364
lldb::VariableListSP GetBlockVariableList(bool can_create)
Get the variable list for this block only.
Definition Block.cpp:392
Block * GetContainingInlinedBlockWithCallSite(const Declaration &find_call_site)
Get the inlined block at the given call site that contains this block.
Definition Block.cpp:223
void CalculateSymbolContext(SymbolContext *sc) override
Reconstruct the object's symbol context into sc.
Definition Block.cpp:137
Function & GetFunction()
Definition Block.cpp:156
Block * FindInnermostBlockByOffset(const lldb::addr_t offset)
Definition Block.cpp:127
lldb::ModuleSP CalculateSymbolContextModule() override
Definition Block.cpp:142
Block * GetContainingInlinedBlock()
Get the inlined block that contains this block.
Definition Block.cpp:206
void SetBlockInfoHasBeenParsed(bool b, bool set_children)
Definition Block.cpp:479
bool GetRangeAtIndex(uint32_t range_idx, AddressRange &range)
Definition Block.cpp:294
const InlineFunctionInfo * GetInlinedFunctionInfo() const
Get const accessor for any inlined function information.
Definition Block.h:268
Block(Function &function, lldb::user_id_t function_uid)
Definition Block.cpp:24
AddressRanges GetRanges()
Definition Block.cpp:306
bool m_parsed_child_blocks
Definition Block.h:369
lldb::InlineFunctionInfoSP m_inlineInfoSP
Inlined function information.
Definition Block.h:363
void DumpSymbolContext(Stream *s) override
Dump the object's symbol context to the stream s.
Definition Block.cpp:164
bool GetRangeContainingAddress(const Address &addr, AddressRange &range)
Definition Block.cpp:248
lldb::BlockSP CreateChild(lldb::user_id_t uid)
Creates a block with the specified UID uid.
Definition Block.cpp:380
Block * FindBlockByID(lldb::user_id_t block_id)
Definition Block.cpp:113
bool m_parsed_block_info
Set to true if this block and it's children have all been parsed.
Definition Block.h:368
Block * GetSibling() const
Get the sibling block for this block.
Definition Block.cpp:498
bool Contains(lldb::addr_t range_offset) const
Check if an offset is in one of the block offset ranges.
Definition Block.cpp:180
CompileUnit * CalculateSymbolContextCompileUnit() override
Definition Block.cpp:146
Block * GetSiblingForChild(const Block *child_block) const
Definition Block.cpp:506
Function * CalculateSymbolContextFunction() override
Definition Block.cpp:150
bool GetRangeContainingLoadAddress(lldb::addr_t load_addr, Target &target, AddressRange &range)
Definition Block.cpp:266
CompilerDeclContext GetDeclContext()
Definition Block.cpp:473
collection m_children
Definition Block.h:356
bool m_parsed_block_variables
Definition Block.h:369
Block * GetParent() const
Get the parent block.
Definition Block.cpp:202
uint32_t AppendVariables(bool can_create, bool get_parent_variables, bool stop_if_block_is_inlined_function, const std::function< bool(Variable *)> &filter, VariableList *variable_list)
Appends the variables from this block, and optionally from all parent blocks, to variable_list.
Definition Block.cpp:436
bool GetStartAddress(Address &addr)
Definition Block.cpp:317
SymbolFile * GetSymbolFile()
Get the symbol file which contains debug info for this block's symbol context module.
Definition Block.cpp:467
void Dump(Stream *s, lldb::addr_t base_addr, int32_t depth, bool show_context) const
Dump the block contents.
Definition Block.cpp:60
void SetDidParseVariables(bool b, bool set_children)
Definition Block.cpp:489
bool GetRangeContainingOffset(const lldb::addr_t offset, Range &range)
Definition Block.cpp:238
void AddRange(const Range &range)
Add a new offset range to this block.
Definition Block.cpp:331
Block * CalculateSymbolContextBlock() override
Definition Block.cpp:154
void DumpAddressRanges(Stream *s, lldb::addr_t base_addr)
Definition Block.cpp:169
Block * GetInlinedParent()
Get the inlined parent block for this block.
Definition Block.cpp:212
void FinalizeRanges()
Definition Block.cpp:326
SymbolContextScope & m_parent_scope
Definition Block.h:355
uint32_t GetRangeIndexContainingAddress(const Address &addr)
Definition Block.cpp:274
void SetInlinedFunctionInfo(const char *name, const char *mangled, const Declaration *decl_ptr, const Declaration *call_decl_ptr)
Set accessor for any inlined function information.
Definition Block.cpp:385
size_t MemorySize() const
Get the memory cost of this object.
Definition Block.cpp:371
uint32_t AppendBlockVariables(bool can_create, bool get_child_block_variables, bool stop_if_child_block_is_inlined_function, const std::function< bool(Variable *)> &filter, VariableList *variable_list)
Get the variable list for this block and optionally all child blocks if get_child_variables is true.
Definition Block.cpp:406
void GetDescription(Stream *s, Function *function, lldb::DescriptionLevel level, Target *target) const
Definition Block.cpp:33
RangeList m_ranges
Address ranges of this block.
Definition Block.h:361
A class that describes a compilation unit.
Definition CompileUnit.h:43
Represents a generic declaration context in a program.
A class that describes the declaration location of a lldb object.
Definition Declaration.h:24
uint32_t GetLine() const
Get accessor for the declaration line number.
FileSpec & GetFile()
Get accessor for file specification.
size_t GetPath(char *path, size_t max_path_length, bool denormalize=true) const
Extract the full path to the file.
Definition FileSpec.cpp:374
A class that describes a function.
Definition Function.h:400
const Address & GetAddress() const
Return the address of the function (its entry point).
Definition Function.h:453
void DumpSymbolContext(Stream *s) override
Dump the object's symbol context to the stream s.
Definition Function.cpp:502
Type * GetType()
Get accessor for the type that describes the function return value type, and parameter types.
Definition Function.cpp:550
A stream class that can stream formatted output to a file.
Definition Stream.h:28
llvm::raw_ostream & AsRawOstream()
Returns a raw_ostream that forwards the data to this Stream object.
Definition Stream.h:400
size_t Indent(llvm::StringRef s="")
Indent the current line in the stream.
Definition Stream.cpp:157
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Definition Stream.cpp:134
size_t EOL()
Output and End of Line character to the stream.
Definition Stream.cpp:155
void IndentLess(unsigned amount=2)
Decrement the current indentation level.
Definition Stream.cpp:198
void IndentMore(unsigned amount=2)
Increment the current indentation level.
Definition Stream.cpp:195
"lldb/Symbol/SymbolContextScope.h" Inherit from this if your object is part of a symbol context and c...
Defines a symbol context baton that can be handed other debug core functions.
Block * block
The Block for a given query.
lldb::ModuleSP module_sp
The Module for a given query.
Provides public interface for all SymbolFiles.
Definition SymbolFile.h:51
const lldb_private::Declaration & GetDeclaration() const
Definition Type.cpp:584
void AddVariable(const lldb::VariableSP &var_sp)
#define LLDB_INVALID_ADDRESS
#define UINT32_MAX
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:332
void DumpAddressRange(llvm::raw_ostream &s, uint64_t lo_addr, uint64_t hi_addr, uint32_t addr_size, const char *prefix=nullptr, const char *suffix=nullptr)
Output an address range to this stream.
Definition Stream.cpp:120
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelVerbose
std::shared_ptr< lldb_private::Block > BlockSP
std::shared_ptr< lldb_private::VariableList > VariableListSP
std::shared_ptr< lldb_private::Variable > VariableSP
uint64_t user_id_t
Definition lldb-types.h:82
uint64_t addr_t
Definition lldb-types.h:80
std::shared_ptr< lldb_private::Module > ModuleSP
void Clear(BaseType b=0)
Definition RangeMap.h:40
BaseType GetRangeBase() const
Definition RangeMap.h:45
SizeType GetByteSize() const
Definition RangeMap.h:87
BaseType GetRangeEnd() const
Definition RangeMap.h:78
UserID(lldb::user_id_t uid=LLDB_INVALID_UID)
Construct with optional user ID.
Definition UserID.h:33
lldb::user_id_t GetID() const
Get accessor for the user ID.
Definition UserID.h:47