LLDB mainline
SymbolFileNativePDB.h
Go to the documentation of this file.
1//===-- SymbolFileNativePDB.h -----------------------------------*- C++ -*-===//
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#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_SYMBOLFILENATIVEPDB_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_SYMBOLFILENATIVEPDB_H
11
14
15#include "llvm/ADT/DenseMap.h"
16#include "llvm/ADT/StringMap.h"
17#include "llvm/DebugInfo/CodeView/CVRecord.h"
18#include "llvm/DebugInfo/CodeView/SymbolRecord.h"
19#include "llvm/DebugInfo/PDB/PDBTypes.h"
20
21#include "CompileUnitIndex.h"
22#include "PdbIndex.h"
23#include "PdbAstBuilder.h"
24#include <optional>
25
26namespace clang {
27class TagDecl;
28}
29
30namespace llvm {
31namespace codeview {
32class ClassRecord;
33class EnumRecord;
34class ModifierRecord;
35class PointerRecord;
36struct UnionRecord;
37} // namespace codeview
38} // namespace llvm
39
40namespace lldb_private {
41
42namespace npdb {
43
45 friend class UdtRecordCompleter;
46
47 /// LLVM RTTI support.
48 static char ID;
49
50public:
51 /// LLVM RTTI support.
52 /// \{
53 bool isA(const void *ClassID) const override {
54 return ClassID == &ID || SymbolFileCommon::isA(ClassID);
55 }
56 static bool classof(const SymbolFile *obj) { return obj->isA(&ID); }
57 /// \}
58
59 // Static Functions
60 static void Initialize();
61
62 static void Terminate();
63
64 static void DebuggerInitialize(Debugger &debugger);
65
66 static llvm::StringRef GetPluginNameStatic() { return "native-pdb"; }
67
68 static llvm::StringRef GetPluginDescriptionStatic();
69
71
72 // Constructors and Destructors
74
76
77 uint32_t CalculateAbilities() override;
78
79 void InitializeObject() override;
80
81 uint64_t GetDebugInfoSize(bool load_all_debug_info = false) override;
82
83 // Compile Unit function calls
84
85 void
87
89 ParseLanguage(lldb_private::CompileUnit &comp_unit) override;
90
91 size_t ParseFunctions(lldb_private::CompileUnit &comp_unit) override;
92
93 bool ParseLineTable(lldb_private::CompileUnit &comp_unit) override;
94
95 bool ParseDebugMacros(lldb_private::CompileUnit &comp_unit) override;
96
98 SupportFileList &support_files) override;
99 size_t ParseTypes(lldb_private::CompileUnit &comp_unit) override;
100
102 const SymbolContext &sc,
103 std::vector<lldb_private::SourceModule> &imported_modules) override;
104
105 size_t ParseBlocksRecursive(Function &func) override;
106
108 const CompilerDeclContext &parent_decl_ctx,
109 uint32_t max_matches,
110 VariableList &variables) override;
111
112 size_t ParseVariablesForContext(const SymbolContext &sc) override;
113
114 void AddSymbols(Symtab &symtab) override;
115
119 Type *ResolveTypeUID(lldb::user_id_t type_uid) override;
120 std::optional<ArrayInfo> GetDynamicArrayInfoForUID(
121 lldb::user_id_t type_uid,
122 const lldb_private::ExecutionContext *exe_ctx) override;
123
124 bool CompleteType(CompilerType &compiler_type) override;
125 uint32_t ResolveSymbolContext(const Address &so_addr,
126 lldb::SymbolContextItem resolve_scope,
127 SymbolContext &sc) override;
128 uint32_t ResolveSymbolContext(const SourceLocationSpec &src_location_spec,
129 lldb::SymbolContextItem resolve_scope,
130 SymbolContextList &sc_list) override;
131
132 void GetTypes(SymbolContextScope *sc_scope, lldb::TypeClass type_mask,
133 TypeList &type_list) override;
134
135 void FindFunctions(const Module::LookupInfo &lookup_info,
136 const CompilerDeclContext &parent_decl_ctx,
137 bool include_inlines, SymbolContextList &sc_list) override;
138
139 void FindFunctions(const RegularExpression &regex, bool include_inlines,
140 SymbolContextList &sc_list) override;
141
142 std::optional<PdbCompilandSymId> FindSymbolScope(PdbCompilandSymId id);
143
144 /// Build the asm label for the declaration of a function so that calls to it
145 /// are routed through ResolveFunctionCallLabel.
146 ///
147 /// \param id A symbol ID of a S_LPROC32/S_GPROC32 record
148 /// \returns The label, or an empty string if \p id is not a function.
150
151 /// Build the asm label for a method that was declared in the field list of
152 /// its class.
153 ///
154 /// \param method_type The type of the method in the field list.
155 /// \param qualified_name The name of the method including its class.
156 /// \returns The label of the definition of the method, or an empty string
157 /// if the method is not defined in this module.
158 std::string GetMethodCallLabel(llvm::codeview::TypeIndex method_type,
159 llvm::StringRef qualified_name);
160
161 llvm::Expected<SymbolContext>
163
164 void FindTypes(const lldb_private::TypeQuery &match,
165 lldb_private::TypeResults &results) override;
166
167 llvm::Expected<lldb::TypeSystemSP>
169
171 const CompilerDeclContext &parent_decl_ctx,
172 bool only_root_namespaces) override;
173
174 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
175
176 llvm::pdb::PDBFile &GetPDBFile() { return m_index->pdb(); }
177 const llvm::pdb::PDBFile &GetPDBFile() const { return m_index->pdb(); }
178
179 PdbIndex &GetIndex() { return *m_index; };
180
181 void DumpClangAST(Stream &s, llvm::StringRef filter,
182 bool show_color) override;
183
184 std::optional<llvm::codeview::TypeIndex>
185 GetParentType(llvm::codeview::TypeIndex ti);
186
187private:
190 const lldb_private::LineTable::Entry &rhs) const {
191 return lhs.file_addr < rhs.file_addr;
192 }
193 };
194
195 // From address range relative to function base to source line number.
198 // InlineSite contains information in a S_INLINESITE record.
199 struct InlineSite {
201 std::shared_ptr<InlineFunctionInfo> inline_function_info;
203 std::vector<lldb_private::LineTable::Entry> line_entries;
205 };
206
207 void BuildParentMap();
208
209 uint32_t CalculateNumCompileUnits() override;
210
211 lldb::CompUnitSP ParseCompileUnitAtIndex(uint32_t index) override;
212
213 void FindTypesByName(llvm::StringRef name, uint32_t max_matches,
214 TypeMap &types);
215
217 const llvm::codeview::ModifierRecord &mr,
218 CompilerType ct);
220 const llvm::codeview::PointerRecord &pr,
221 CompilerType ct);
222 lldb::TypeSP CreateSimpleType(llvm::codeview::TypeIndex ti, CompilerType ct);
224 const llvm::codeview::ClassRecord &cr,
225 CompilerType ct);
227 const llvm::codeview::EnumRecord &er,
228 CompilerType ct);
230 const llvm::codeview::UnionRecord &ur,
231 CompilerType ct);
233 const llvm::codeview::ArrayRecord &ar,
234 CompilerType ct);
236 const llvm::codeview::MemberFunctionRecord &pr,
237 CompilerType ct);
239 const llvm::codeview::ProcedureRecord &pr,
240 CompilerType ct);
242 const llvm::codeview::TagRecord &record,
243 size_t size, CompilerType ct);
244
246 CompileUnit &comp_unit);
249 lldb::TypeSP GetOrCreateType(llvm::codeview::TypeIndex ti);
253 PdbCompilandSymId var_id);
255 PdbCompilandSymId var_id,
256 bool is_param,
257 bool is_constant = false);
259
261 CompileUnit &comp_unit);
264 PdbCompilandSymId var_id, bool is_param,
265 bool is_constant = false);
272 const llvm::codeview::CVSymbol &cvs);
274 VariableList &variables);
276
277 void CreateSimpleArgumentListTypes(llvm::codeview::TypeIndex arglist_ti);
278
279 llvm::Expected<uint32_t> GetFileIndex(const CompilandIndexItem &cii,
280 uint32_t file_id);
281
283 PdbCompilandSymId parent,
284 llvm::function_ref<bool(llvm::codeview::SymbolKind, PdbCompilandSymId)>
285 fn);
286
287 void ParseInlineSite(PdbCompilandSymId inline_site_id, Address func_addr);
288
289 std::vector<CompilerContext> GetContextForType(llvm::codeview::TypeIndex ti);
290 std::vector<CompilerContext> GetContextForTypedef(PdbGlobalSymId id);
291
292 /// Returns true if \p udt is a typedef rather than the S_UDT that is emitted
293 /// for every tag type.
294 bool IsTypedefUdt(const llvm::codeview::UDTSym &udt);
295
296 /// Caches the basenames of symbols found in the globals stream.
297 ///
298 /// This includes functions and global variables
300
302 llvm::Expected<Declaration> ResolveUdtDeclaration(PdbTypeSymId type_id);
303
304 /// Find a symbol name at a specific address (`so`).
305 ///
306 /// \param[in] so The segment and offset where the symbol is located.
307 /// \param[in] function_type If the symbol is expected to be a function, this
308 /// has to be the type of the function. It's used to strip the name of
309 /// __cdecl functions on x86.
310 /// \returns The mangled symbol name if found, otherwise `std::nullopt`.
311 std::optional<llvm::StringRef> FindMangledSymbol(
312 SegmentOffset so,
313 llvm::codeview::TypeIndex function_type = llvm::codeview::TypeIndex());
314
315 llvm::StringRef StripMangledFunctionName(llvm::StringRef mangled,
316 PdbTypeSymId func_ty);
317
318 std::string MakeFunctionCallLabel(PdbSymUid uid, llvm::StringRef lookup_name);
319
320 /// Append the function referenced by the S_PROCREF/S_LPROCREF \p global.
322 SymbolContextList &sc_list);
323
324 /// Find the S_GPROC32/S_LPROC32 record named \p qualified_name whose type is
325 /// \p method_type.
326 std::optional<PdbCompilandSymId>
327 FindMethodDefinition(llvm::StringRef qualified_name,
328 llvm::codeview::TypeIndex method_type);
329
330 llvm::BumpPtrAllocator m_allocator;
331
334 // UID for anonymous union and anonymous struct as they don't have entities in
335 // pdb debug info.
337
338 std::unique_ptr<llvm::pdb::PDBFile> m_file_up;
339 std::unique_ptr<PdbIndex> m_index;
340
341 llvm::DenseMap<lldb::user_id_t, lldb::VariableSP> m_global_vars;
342 llvm::DenseMap<lldb::user_id_t, lldb::VariableSP> m_local_variables;
343 llvm::DenseMap<lldb::user_id_t, lldb::BlockSP> m_blocks;
344 llvm::DenseMap<lldb::user_id_t, lldb::FunctionSP> m_functions;
345 llvm::DenseMap<lldb::user_id_t, lldb::CompUnitSP> m_compilands;
346 llvm::DenseMap<lldb::user_id_t, lldb::TypeSP> m_types;
347 llvm::DenseMap<lldb::user_id_t, std::shared_ptr<InlineSite>> m_inline_sites;
348 llvm::DenseMap<llvm::codeview::TypeIndex, llvm::codeview::TypeIndex>
350
351 bool m_parent_map_built = false;
352
354 /// This could either be an index into the `/names` section (string table,
355 /// LF_UDT_MOD_SRC_LINE) or, this could be an index into the IPI stream to a
356 /// LF_STRING_ID record (LF_UDT_SRC_LINE).
357 llvm::codeview::TypeIndex FileNameIndex;
359
360 uint32_t Line;
361 };
362 llvm::DenseMap<llvm::codeview::TypeIndex, UdtDeclaration> m_udt_declarations;
364
366 /// typedef basename -> Global ID(s) of its S_UDT
368 /// Qualified name of a scope of a typedef -> Global ID of a typedef in it.
369 llvm::StringMap<uint32_t> m_typedef_scopes;
370
371 /// mangled name/full function name -> Global ID(s)
373 /// basename -> Global ID(s)
375 /// method basename -> Global ID(s)
377
378 /// global variable basename -> Global ID(s)
380};
381
382} // namespace npdb
383} // namespace lldb_private
384
385#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_SYMBOLFILENATIVEPDB_H
A section + offset based address class.
Definition Address.h:62
A class that describes a single lexical block.
Definition Block.h:41
A class that describes a compilation unit.
Definition CompileUnit.h:43
Represents a generic declaration context in a program.
Represents a generic declaration such as a function declaration.
Generic representation of a type in a programming language.
A uniqued constant string class.
Definition ConstString.h:40
A class to manage flag bits.
Definition Debugger.h:103
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A class that describes a function.
Definition Function.h:386
A class that encapsulates name lookup information.
Definition Module.h:935
"lldb/Core/SourceLocationSpec.h" A source location specifier class.
A stream class that can stream formatted output to a file.
Definition Stream.h:28
A list of support files for a CompileUnit.
Defines a list of symbol context objects.
"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.
bool isA(const void *ClassID) const override
LLVM RTTI support.
Definition SymbolFile.h:573
SymbolFileCommon(lldb::ObjectFileSP objfile_sp)
Definition SymbolFile.h:580
Provides public interface for all SymbolFiles.
Definition SymbolFile.h:51
virtual bool isA(const void *ClassID) const
LLVM RTTI support.
Definition SymbolFile.h:58
A class that contains all state required for type lookups.
This class tracks the state and results of a TypeQuery.
PdbIndex - Lazy access to the important parts of a PDB file.
Definition PdbIndex.h:47
void CreateSimpleArgumentListTypes(llvm::codeview::TypeIndex arglist_ti)
lldb::VariableSP GetOrCreateGlobalVariable(PdbGlobalSymId var_id)
bool ParseLineTable(lldb_private::CompileUnit &comp_unit) override
lldb::TypeSP CreateArrayType(PdbTypeSymId type_id, const llvm::codeview::ArrayRecord &ar, CompilerType ct)
lldb_private::RangeDataVector< uint32_t, uint32_t, int32_t > RangeSourceLineVector
std::optional< ArrayInfo > GetDynamicArrayInfoForUID(lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx) override
If type_uid points to an array type, return its characteristics.
void CacheGlobalBaseNames()
Caches the basenames of symbols found in the globals stream.
llvm::Expected< Declaration > ResolveUdtDeclaration(PdbTypeSymId type_id)
lldb::VariableSP CreateGlobalVariable(PdbGlobalSymId var_id)
llvm::Expected< lldb::TypeSystemSP > GetTypeSystemForLanguage(lldb::LanguageType language) override
void InitializeObject() override
Initialize the SymbolFile object.
lldb_private::UniqueCStringMap< uint32_t > m_func_base_names
basename -> Global ID(s)
static SymbolFile * CreateInstance(lldb::ObjectFileSP objfile_sp)
llvm::DenseMap< lldb::user_id_t, lldb::TypeSP > m_types
bool CompleteType(CompilerType &compiler_type) override
lldb::LanguageType ParseLanguage(lldb_private::CompileUnit &comp_unit) override
CompilerDeclContext GetDeclContextForUID(lldb::user_id_t uid) override
void DumpClangAST(Stream &s, llvm::StringRef filter, bool show_color) override
size_t ParseVariablesForContext(const SymbolContext &sc) override
size_t ParseFunctions(lldb_private::CompileUnit &comp_unit) override
lldb::TypeSP CreatePointerType(PdbTypeSymId type_id, const llvm::codeview::PointerRecord &pr, CompilerType ct)
lldb::FunctionSP CreateFunction(PdbCompilandSymId func_id, CompileUnit &comp_unit)
llvm::DenseMap< lldb::user_id_t, lldb::BlockSP > m_blocks
bool ParseSupportFiles(lldb_private::CompileUnit &comp_unit, SupportFileList &support_files) override
CompilerDecl GetDeclForUID(lldb::user_id_t uid) override
std::vector< CompilerContext > GetContextForTypedef(PdbGlobalSymId id)
SymbolFileNativePDB(lldb::ObjectFileSP objfile_sp)
bool isA(const void *ClassID) const override
LLVM RTTI support.
lldb::TypeSP GetOrCreateTypedef(PdbGlobalSymId id)
void FindTypesByName(llvm::StringRef name, uint32_t max_matches, TypeMap &types)
lldb::TypeSP CreateTagType(PdbTypeSymId type_id, const llvm::codeview::ClassRecord &cr, CompilerType ct)
lldb::TypeSP GetOrCreateType(PdbTypeSymId type_id)
lldb::TypeSP CreateTagType(PdbTypeSymId type_id, const llvm::codeview::UnionRecord &ur, CompilerType ct)
void GetTypes(SymbolContextScope *sc_scope, lldb::TypeClass type_mask, TypeList &type_list) override
std::string GetFunctionCallLabel(PdbCompilandSymId id)
Build the asm label for the declaration of a function so that calls to it are routed through ResolveF...
llvm::DenseMap< lldb::user_id_t, lldb::VariableSP > m_local_variables
llvm::Expected< SymbolContext > ResolveFunctionCallLabel(FunctionCallLabel &label) override
Resolves the function corresponding to the specified LLDB function call label.
lldb::VariableSP CreateConstantSymbol(PdbGlobalSymId var_id, const llvm::codeview::CVSymbol &cvs)
lldb::TypeSP CreateType(PdbTypeSymId type_id, CompilerType ct)
lldb_private::UniqueCStringMap< uint32_t > m_func_method_names
method basename -> Global ID(s)
std::optional< llvm::codeview::TypeIndex > GetParentType(llvm::codeview::TypeIndex ti)
lldb_private::UniqueCStringMap< uint32_t > m_global_variable_base_names
global variable basename -> Global ID(s)
void FindFunctions(const Module::LookupInfo &lookup_info, const CompilerDeclContext &parent_decl_ctx, bool include_inlines, SymbolContextList &sc_list) override
std::unique_ptr< llvm::pdb::PDBFile > m_file_up
lldb::TypeSP CreateProcedureType(PdbTypeSymId type_id, const llvm::codeview::ProcedureRecord &pr, CompilerType ct)
lldb::TypeSP CreateModifierType(PdbTypeSymId type_id, const llvm::codeview::ModifierRecord &mr, CompilerType ct)
uint64_t GetDebugInfoSize(bool load_all_debug_info=false) override
Metrics gathering functions.
std::optional< llvm::StringRef > FindMangledSymbol(SegmentOffset so, llvm::codeview::TypeIndex function_type=llvm::codeview::TypeIndex())
Find a symbol name at a specific address (so).
size_t ParseTypes(lldb_private::CompileUnit &comp_unit) override
Block * GetOrCreateBlock(PdbCompilandSymId block_id)
lldb::VariableSP GetOrCreateLocalVariable(PdbCompilandSymId scope_id, PdbCompilandSymId var_id, bool is_param, bool is_constant=false)
size_t ParseBlocksRecursive(Function &func) override
void AppendFunctionForProcRef(PdbGlobalSymId global, SymbolContextList &sc_list)
Append the function referenced by the S_PROCREF/S_LPROCREF global.
std::optional< PdbCompilandSymId > FindMethodDefinition(llvm::StringRef qualified_name, llvm::codeview::TypeIndex method_type)
Find the S_GPROC32/S_LPROC32 record named qualified_name whose type is method_type.
lldb::CompUnitSP CreateCompileUnit(const CompilandIndexItem &cci)
std::optional< PdbCompilandSymId > FindSymbolScope(PdbCompilandSymId id)
size_t ParseSymbolArrayInScope(PdbCompilandSymId parent, llvm::function_ref< bool(llvm::codeview::SymbolKind, PdbCompilandSymId)> fn)
const llvm::pdb::PDBFile & GetPDBFile() const
llvm::StringMap< uint32_t > m_typedef_scopes
Qualified name of a scope of a typedef -> Global ID of a typedef in it.
size_t ParseVariablesForCompileUnit(CompileUnit &comp_unit, VariableList &variables)
llvm::DenseMap< lldb::user_id_t, lldb::CompUnitSP > m_compilands
Block * CreateBlock(PdbCompilandSymId block_id)
std::vector< CompilerContext > GetContextForType(llvm::codeview::TypeIndex ti)
lldb_private::UniqueCStringMap< uint32_t > m_typedef_base_names
typedef basename -> Global ID(s) of its S_UDT
llvm::Expected< uint32_t > GetFileIndex(const CompilandIndexItem &cii, uint32_t file_id)
lldb::CompUnitSP GetOrCreateCompileUnit(const CompilandIndexItem &cci)
Type * ResolveTypeUID(lldb::user_id_t type_uid) override
llvm::DenseMap< lldb::user_id_t, lldb::FunctionSP > m_functions
bool ParseImportedModules(const SymbolContext &sc, std::vector< lldb_private::SourceModule > &imported_modules) override
bool IsTypedefUdt(const llvm::codeview::UDTSym &udt)
Returns true if udt is a typedef rather than the S_UDT that is emitted for every tag type.
llvm::StringRef StripMangledFunctionName(llvm::StringRef mangled, PdbTypeSymId func_ty)
static void DebuggerInitialize(Debugger &debugger)
lldb::VariableSP CreateLocalVariable(PdbCompilandSymId scope_id, PdbCompilandSymId var_id, bool is_param, bool is_constant=false)
llvm::DenseMap< lldb::user_id_t, std::shared_ptr< InlineSite > > m_inline_sites
void ParseInlineSite(PdbCompilandSymId inline_site_id, Address func_addr)
std::string MakeFunctionCallLabel(PdbSymUid uid, llvm::StringRef lookup_name)
lldb::TypeSP CreateTagType(PdbTypeSymId type_id, const llvm::codeview::EnumRecord &er, CompilerType ct)
lldb::TypeSP CreateClassStructUnion(PdbTypeSymId type_id, const llvm::codeview::TagRecord &record, size_t size, CompilerType ct)
void FindGlobalVariables(ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables) override
size_t ParseVariablesForBlock(PdbCompilandSymId block_id)
void ParseDeclsForContext(lldb_private::CompilerDeclContext decl_ctx) override
lldb::FunctionSP GetOrCreateFunction(PdbCompilandSymId func_id, CompileUnit &comp_unit)
llvm::DenseMap< llvm::codeview::TypeIndex, llvm::codeview::TypeIndex > m_parent_types
lldb_private::UniqueCStringMap< uint32_t > m_func_full_names
mangled name/full function name -> Global ID(s)
lldb::CompUnitSP ParseCompileUnitAtIndex(uint32_t index) override
lldb::TypeSP CreateFunctionType(PdbTypeSymId type_id, const llvm::codeview::MemberFunctionRecord &pr, CompilerType ct)
lldb_private::UniqueCStringMap< uint32_t > m_type_base_names
lldb::TypeSP CreateAndCacheType(PdbTypeSymId type_id)
CompilerDeclContext FindNamespace(ConstString name, const CompilerDeclContext &parent_decl_ctx, bool only_root_namespaces) override
Finds a namespace of name name and whose parent context is parent_decl_ctx.
CompilerDeclContext GetDeclContextContainingUID(lldb::user_id_t uid) override
bool ParseDebugMacros(lldb_private::CompileUnit &comp_unit) override
lldb::TypeSP CreateTypedef(PdbGlobalSymId id)
llvm::DenseMap< llvm::codeview::TypeIndex, UdtDeclaration > m_udt_declarations
void FindTypes(const lldb_private::TypeQuery &match, lldb_private::TypeResults &results) override
Find types using a type-matching object that contains all search parameters.
std::string GetMethodCallLabel(llvm::codeview::TypeIndex method_type, llvm::StringRef qualified_name)
Build the asm label for a method that was declared in the field list of its class.
lldb::TypeSP GetOrCreateType(llvm::codeview::TypeIndex ti)
static bool classof(const SymbolFile *obj)
uint32_t ResolveSymbolContext(const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc) override
lldb::VariableSP GetOrCreateLocalStaticVariable(PdbCompilandSymId scope_id, PdbCompilandSymId var_id)
llvm::DenseMap< lldb::user_id_t, lldb::VariableSP > m_global_vars
lldb::TypeSP CreateSimpleType(llvm::codeview::TypeIndex ti, CompilerType ct)
#define LLDB_INVALID_UID
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Function > FunctionSP
std::shared_ptr< lldb_private::ObjectFile > ObjectFileSP
LanguageType
Programming language type.
std::shared_ptr< lldb_private::Type > TypeSP
std::shared_ptr< lldb_private::Variable > VariableSP
uint64_t user_id_t
Definition lldb-types.h:83
uint64_t addr_t
Definition lldb-types.h:80
std::shared_ptr< lldb_private::CompileUnit > CompUnitSP
Holds parsed information about a function call label that LLDB attaches as an AsmLabel to function AS...
Definition Expression.h:110
lldb::addr_t file_addr
The file address for this line entry.
Definition LineTable.h:265
Represents a single compile unit.
std::vector< lldb_private::LineTable::Entry > line_entries
std::shared_ptr< InlineFunctionInfo > inline_function_info
bool operator()(const lldb_private::LineTable::Entry &lhs, const lldb_private::LineTable::Entry &rhs) const
llvm::codeview::TypeIndex FileNameIndex
This could either be an index into the /names section (string table, LF_UDT_MOD_SRC_LINE) or,...