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 "PdbAstBuilder.h"
23#include "PdbIndex.h"
24#include <optional>
25#include <set>
26
27namespace clang {
28class TagDecl;
29}
30
31namespace llvm {
32namespace codeview {
33class ClassRecord;
34class EnumRecord;
35class ModifierRecord;
36class PointerRecord;
37struct UnionRecord;
38} // namespace codeview
39} // namespace llvm
40
41namespace lldb_private {
42
43namespace npdb {
44
46 friend class UdtRecordCompleter;
47
48 /// LLVM RTTI support.
49 static char ID;
50
51public:
52 /// LLVM RTTI support.
53 /// \{
54 bool isA(const void *ClassID) const override {
55 return ClassID == &ID || SymbolFileCommon::isA(ClassID);
56 }
57 static bool classof(const SymbolFile *obj) { return obj->isA(&ID); }
58 /// \}
59
60 // Static Functions
61 static void Initialize();
62
63 static void Terminate();
64
65 static void DebuggerInitialize(Debugger &debugger);
66
67 static llvm::StringRef GetPluginNameStatic() { return "native-pdb"; }
68
69 static llvm::StringRef GetPluginDescriptionStatic();
70
72
73 // Constructors and Destructors
75
77
78 uint32_t CalculateAbilities() override;
79
80 void InitializeObject() override;
81
82 uint64_t GetDebugInfoSize(bool load_all_debug_info = false) override;
83
84 // Compile Unit function calls
85
86 void
88
90 ParseLanguage(lldb_private::CompileUnit &comp_unit) override;
91
92 size_t ParseFunctions(lldb_private::CompileUnit &comp_unit) override;
93
94 bool ParseLineTable(lldb_private::CompileUnit &comp_unit) override;
95
96 bool ParseDebugMacros(lldb_private::CompileUnit &comp_unit) override;
97
99 SupportFileList &support_files) override;
100 size_t ParseTypes(lldb_private::CompileUnit &comp_unit) override;
101
103 const SymbolContext &sc,
104 std::vector<lldb_private::SourceModule> &imported_modules) override;
105
106 size_t ParseBlocksRecursive(Function &func) override;
107
109 const CompilerDeclContext &parent_decl_ctx,
110 uint32_t max_matches,
111 VariableList &variables) override;
112
113 size_t ParseVariablesForContext(const SymbolContext &sc) override;
114
115 bool AddOrModifySymbols(Symtab &symtab) override;
116
120 Type *ResolveTypeUID(lldb::user_id_t type_uid) override;
121 std::optional<ArrayInfo> GetDynamicArrayInfoForUID(
122 lldb::user_id_t type_uid,
123 const lldb_private::ExecutionContext *exe_ctx) override;
124
125 bool CompleteType(CompilerType &compiler_type) override;
126 uint32_t ResolveSymbolContext(const Address &so_addr,
127 lldb::SymbolContextItem resolve_scope,
128 SymbolContext &sc) override;
129 uint32_t ResolveSymbolContext(const SourceLocationSpec &src_location_spec,
130 lldb::SymbolContextItem resolve_scope,
131 SymbolContextList &sc_list) override;
132
133 void GetTypes(SymbolContextScope *sc_scope, lldb::TypeClass type_mask,
134 TypeList &type_list) override;
135
136 void FindFunctions(const Module::LookupInfo &lookup_info,
137 const CompilerDeclContext &parent_decl_ctx,
138 bool include_inlines, SymbolContextList &sc_list) override;
139
140 void FindFunctions(const RegularExpression &regex, bool include_inlines,
141 SymbolContextList &sc_list) override;
142
143 std::optional<PdbCompilandSymId> FindSymbolScope(PdbCompilandSymId id);
144
145 /// Build the asm label for the declaration of a function so that calls to it
146 /// are routed through ResolveFunctionCallLabel.
147 ///
148 /// \param id A symbol ID of a S_LPROC32/S_GPROC32 record
149 /// \returns The label, or an empty string if \p id is not a function.
151
152 /// Build the asm label for a method that was declared in the field list of
153 /// its class.
154 ///
155 /// \param method_type The type of the method in the field list.
156 /// \param qualified_name The name of the method including its class.
157 /// \returns The label of the definition of the method, or an empty string
158 /// if the method is not defined in this module.
159 std::string GetMethodCallLabel(llvm::codeview::TypeIndex method_type,
160 llvm::StringRef qualified_name);
161
162 llvm::Expected<SymbolContext>
164
165 void FindTypes(const lldb_private::TypeQuery &match,
166 lldb_private::TypeResults &results) override;
167
168 llvm::Expected<lldb::TypeSystemSP>
170
172 const CompilerDeclContext &parent_decl_ctx,
173 bool only_root_namespaces) override;
174
175 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
176
177 llvm::pdb::PDBFile &GetPDBFile() { return m_index->pdb(); }
178 const llvm::pdb::PDBFile &GetPDBFile() const { return m_index->pdb(); }
179
180 PdbIndex &GetIndex() { return *m_index; };
181
182 void DumpClangAST(Stream &s, llvm::StringRef filter,
183 bool show_color) override;
184
185 std::optional<llvm::codeview::TypeIndex>
186 GetParentType(llvm::codeview::TypeIndex ti);
187
188private:
191 const lldb_private::LineTable::Entry &rhs) const {
192 return lhs.file_addr < rhs.file_addr;
193 }
194 };
195 using LineSet =
196 std::set<lldb_private::LineTable::Entry, LineTableEntryComparator>;
197
198 // From address range relative to function base to source line number.
201 // InlineSite contains information in a S_INLINESITE record.
202 struct InlineSite {
204 std::shared_ptr<InlineFunctionInfo> inline_function_info;
206 std::vector<lldb_private::LineTable::Entry> line_entries;
208 };
209
210 void BuildParentMap();
211
212 static void MarkPrologueAndEpilogue(LineSet &line_set, lldb::addr_t func_addr,
213 const llvm::codeview::ProcSym &proc);
214
215 uint32_t CalculateNumCompileUnits() override;
216
217 lldb::CompUnitSP ParseCompileUnitAtIndex(uint32_t index) override;
218
219 void FindTypesByName(llvm::StringRef name, uint32_t max_matches,
220 TypeMap &types);
221
223 const llvm::codeview::ModifierRecord &mr,
224 CompilerType ct);
226 const llvm::codeview::PointerRecord &pr,
227 CompilerType ct);
228 lldb::TypeSP CreateSimpleType(llvm::codeview::TypeIndex ti, CompilerType ct);
230 const llvm::codeview::ClassRecord &cr,
231 CompilerType ct);
233 const llvm::codeview::EnumRecord &er,
234 CompilerType ct);
236 const llvm::codeview::UnionRecord &ur,
237 CompilerType ct);
239 const llvm::codeview::ArrayRecord &ar,
240 CompilerType ct);
242 const llvm::codeview::MemberFunctionRecord &pr,
243 CompilerType ct);
245 const llvm::codeview::ProcedureRecord &pr,
246 CompilerType ct);
248 const llvm::codeview::TagRecord &record,
249 size_t size, CompilerType ct);
250
252 CompileUnit &comp_unit);
255 lldb::TypeSP GetOrCreateType(llvm::codeview::TypeIndex ti);
259 PdbCompilandSymId var_id);
261 PdbCompilandSymId var_id,
262 bool is_param,
263 bool is_constant = false);
265
267 CompileUnit &comp_unit);
270 PdbCompilandSymId var_id, bool is_param,
271 bool is_constant = false);
278 const llvm::codeview::CVSymbol &cvs);
280 VariableList &variables);
282
283 void CreateSimpleArgumentListTypes(llvm::codeview::TypeIndex arglist_ti);
284
285 llvm::Expected<uint32_t> GetFileIndex(const CompilandIndexItem &cii,
286 uint32_t file_id);
287
289 PdbCompilandSymId parent,
290 llvm::function_ref<bool(llvm::codeview::SymbolKind, PdbCompilandSymId)>
291 fn);
292
293 void ParseInlineSite(PdbCompilandSymId inline_site_id, Address func_addr);
294
295 std::vector<CompilerContext> GetContextForType(llvm::codeview::TypeIndex ti);
296 std::vector<CompilerContext> GetContextForTypedef(PdbGlobalSymId id);
297
298 /// Returns true if \p udt is a typedef rather than the S_UDT that is emitted
299 /// for every tag type.
300 bool IsTypedefUdt(const llvm::codeview::UDTSym &udt);
301
302 /// Caches the basenames of symbols found in the globals stream.
303 ///
304 /// This includes functions and global variables
306
308 llvm::Expected<Declaration> ResolveUdtDeclaration(PdbTypeSymId type_id);
309
310 /// Find a symbol name at a specific address (`so`).
311 ///
312 /// \param[in] so The segment and offset where the symbol is located.
313 /// \param[in] function_type If the symbol is expected to be a function, this
314 /// has to be the type of the function. It's used to strip the name of
315 /// __cdecl functions on x86.
316 /// \returns The mangled symbol name if found, otherwise `std::nullopt`.
317 std::optional<llvm::StringRef> FindMangledSymbol(
318 SegmentOffset so,
319 llvm::codeview::TypeIndex function_type = llvm::codeview::TypeIndex());
320
321 llvm::StringRef StripMangledFunctionName(llvm::StringRef mangled,
322 PdbTypeSymId func_ty);
323
324 std::string MakeFunctionCallLabel(PdbSymUid uid, llvm::StringRef lookup_name);
325
326 /// Append the function referenced by the S_PROCREF/S_LPROCREF \p global.
328 SymbolContextList &sc_list);
329
330 /// Find the S_GPROC32/S_LPROC32 record named \p qualified_name whose type is
331 /// \p method_type.
332 std::optional<PdbCompilandSymId>
333 FindMethodDefinition(llvm::StringRef qualified_name,
334 llvm::codeview::TypeIndex method_type);
335
336 llvm::BumpPtrAllocator m_allocator;
337
340 // UID for anonymous union and anonymous struct as they don't have entities in
341 // pdb debug info.
343
344 std::unique_ptr<llvm::pdb::PDBFile> m_file_up;
345 std::unique_ptr<PdbIndex> m_index;
346
347 llvm::DenseMap<lldb::user_id_t, lldb::VariableSP> m_global_vars;
348 llvm::DenseMap<lldb::user_id_t, lldb::VariableSP> m_local_variables;
349 llvm::DenseMap<lldb::user_id_t, lldb::BlockSP> m_blocks;
350 llvm::DenseMap<lldb::user_id_t, lldb::FunctionSP> m_functions;
351 llvm::DenseMap<lldb::user_id_t, lldb::CompUnitSP> m_compilands;
352 llvm::DenseMap<lldb::user_id_t, lldb::TypeSP> m_types;
353 llvm::DenseMap<lldb::user_id_t, std::shared_ptr<InlineSite>> m_inline_sites;
354 llvm::DenseMap<llvm::codeview::TypeIndex, llvm::codeview::TypeIndex>
356
357 bool m_parent_map_built = false;
358
360 /// This could either be an index into the `/names` section (string table,
361 /// LF_UDT_MOD_SRC_LINE) or, this could be an index into the IPI stream to a
362 /// LF_STRING_ID record (LF_UDT_SRC_LINE).
363 llvm::codeview::TypeIndex FileNameIndex;
365
366 uint32_t Line;
367 };
368 llvm::DenseMap<llvm::codeview::TypeIndex, UdtDeclaration> m_udt_declarations;
370
372 /// typedef basename -> Global ID(s) of its S_UDT
374 /// Qualified name of a scope of a typedef -> Global ID of a typedef in it.
375 llvm::StringMap<uint32_t> m_typedef_scopes;
376
377 /// mangled name/full function name -> Global ID(s)
379 /// basename -> Global ID(s)
381 /// method basename -> Global ID(s)
383
384 /// global variable basename -> Global ID(s)
386};
387
388} // namespace npdb
389} // namespace lldb_private
390
391#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:106
"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:973
"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:579
SymbolFileCommon(lldb::ObjectFileSP objfile_sp)
Definition SymbolFile.h:586
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)
bool AddOrModifySymbols(Symtab &symtab) override
Add symbols from this SymbolFile to the ObjectFile's symbol table, or update the symbols already in i...
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
std::set< lldb_private::LineTable::Entry, LineTableEntryComparator > LineSet
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)
static void MarkPrologueAndEpilogue(LineSet &line_set, lldb::addr_t func_addr, const llvm::codeview::ProcSym &proc)
Record where a procedure's prologue ends and its epilogue begins in the line table.
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,...