1 //===-- SymbolFileDWARF.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_DWARF_SYMBOLFILEDWARF_H
10 #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_SYMBOLFILEDWARF_H
11 
12 #include <list>
13 #include <map>
14 #include <mutex>
15 #include <optional>
16 #include <unordered_map>
17 #include <vector>
18 
19 #include "llvm/ADT/DenseMap.h"
20 #include "llvm/ADT/SetVector.h"
21 #include "llvm/Support/Threading.h"
22 
23 #include "lldb/Core/UniqueCStringMap.h"
24 #include "lldb/Core/dwarf.h"
25 #include "lldb/Expression/DWARFExpressionList.h"
26 #include "lldb/Symbol/DebugMacros.h"
27 #include "lldb/Symbol/SymbolContext.h"
28 #include "lldb/Symbol/SymbolFile.h"
29 #include "lldb/Target/Statistics.h"
30 #include "lldb/Utility/ConstString.h"
31 #include "lldb/Utility/Flags.h"
32 #include "lldb/Utility/RangeMap.h"
33 #include "lldb/lldb-private.h"
34 
35 #include "DWARFContext.h"
36 #include "DWARFDataExtractor.h"
37 #include "DWARFDefines.h"
38 #include "DWARFIndex.h"
39 #include "UniqueDWARFASTType.h"
40 
41 // Forward Declarations for this DWARF plugin
42 class DebugMapModule;
43 class DWARFAbbreviationDeclaration;
44 class DWARFAbbreviationDeclarationSet;
45 class DWARFCompileUnit;
46 class DWARFDebugAbbrev;
47 class DWARFDebugAranges;
48 class DWARFDebugInfo;
49 class DWARFDebugInfoEntry;
50 class DWARFDebugLine;
51 class DWARFDebugRanges;
52 class DWARFDeclContext;
53 class DWARFFormValue;
54 class DWARFTypeUnit;
55 class SymbolFileDWARFDebugMap;
56 class SymbolFileDWARFDwo;
57 class SymbolFileDWARFDwp;
58 
59 #define DIE_IS_BEING_PARSED ((lldb_private::Type *)1)
60 
61 class SymbolFileDWARF : public lldb_private::SymbolFileCommon,
62                         public lldb_private::UserID {
63   /// LLVM RTTI support.
64   static char ID;
65 
66 public:
67   /// LLVM RTTI support.
68   /// \{
69   bool isA(const void *ClassID) const override {
70     return ClassID == &ID || SymbolFileCommon::isA(ClassID);
71   }
72   static bool classof(const SymbolFile *obj) { return obj->isA(&ID); }
73   /// \}
74 
75   friend class SymbolFileDWARFDebugMap;
76   friend class SymbolFileDWARFDwo;
77   friend class DebugMapModule;
78   friend class DWARFCompileUnit;
79   friend class DWARFDIE;
80   friend class DWARFASTParserClang;
81 
82   // Static Functions
83   static void Initialize();
84 
85   static void Terminate();
86 
87   static void DebuggerInitialize(lldb_private::Debugger &debugger);
88 
89   static llvm::StringRef GetPluginNameStatic() { return "dwarf"; }
90 
91   static llvm::StringRef GetPluginDescriptionStatic();
92 
93   static lldb_private::SymbolFile *
94   CreateInstance(lldb::ObjectFileSP objfile_sp);
95 
96   // Constructors and Destructors
97 
98   SymbolFileDWARF(lldb::ObjectFileSP objfile_sp,
99                   lldb_private::SectionList *dwo_section_list);
100 
101   ~SymbolFileDWARF() override;
102 
103   uint32_t CalculateAbilities() override;
104 
105   void InitializeObject() override;
106 
107   // Compile Unit function calls
108 
109   lldb::LanguageType
110   ParseLanguage(lldb_private::CompileUnit &comp_unit) override;
111 
112   lldb_private::XcodeSDK
113   ParseXcodeSDK(lldb_private::CompileUnit &comp_unit) override;
114 
115   size_t ParseFunctions(lldb_private::CompileUnit &comp_unit) override;
116 
117   bool ParseLineTable(lldb_private::CompileUnit &comp_unit) override;
118 
119   bool ParseDebugMacros(lldb_private::CompileUnit &comp_unit) override;
120 
121   bool ForEachExternalModule(
122       lldb_private::CompileUnit &, llvm::DenseSet<lldb_private::SymbolFile *> &,
123       llvm::function_ref<bool(lldb_private::Module &)>) override;
124 
125   bool ParseSupportFiles(lldb_private::CompileUnit &comp_unit,
126                          lldb_private::FileSpecList &support_files) override;
127 
128   bool ParseIsOptimized(lldb_private::CompileUnit &comp_unit) override;
129 
130   size_t ParseTypes(lldb_private::CompileUnit &comp_unit) override;
131 
132   bool ParseImportedModules(
133       const lldb_private::SymbolContext &sc,
134       std::vector<lldb_private::SourceModule> &imported_modules) override;
135 
136   size_t ParseBlocksRecursive(lldb_private::Function &func) override;
137 
138   size_t
139   ParseVariablesForContext(const lldb_private::SymbolContext &sc) override;
140 
141   lldb_private::Type *ResolveTypeUID(lldb::user_id_t type_uid) override;
142   std::optional<ArrayInfo> GetDynamicArrayInfoForUID(
143       lldb::user_id_t type_uid,
144       const lldb_private::ExecutionContext *exe_ctx) override;
145 
146   bool CompleteType(lldb_private::CompilerType &compiler_type) override;
147 
148   lldb_private::Type *ResolveType(const DWARFDIE &die,
149                                   bool assert_not_being_parsed = true,
150                                   bool resolve_function_context = false);
151 
152   lldb_private::CompilerDecl GetDeclForUID(lldb::user_id_t uid) override;
153 
154   lldb_private::CompilerDeclContext
155   GetDeclContextForUID(lldb::user_id_t uid) override;
156 
157   lldb_private::CompilerDeclContext
158   GetDeclContextContainingUID(lldb::user_id_t uid) override;
159 
160   void
161   ParseDeclsForContext(lldb_private::CompilerDeclContext decl_ctx) override;
162 
163   uint32_t ResolveSymbolContext(const lldb_private::Address &so_addr,
164                                 lldb::SymbolContextItem resolve_scope,
165                                 lldb_private::SymbolContext &sc) override;
166 
167   lldb_private::Status
168   CalculateFrameVariableError(lldb_private::StackFrame &frame) override;
169 
170   uint32_t ResolveSymbolContext(
171       const lldb_private::SourceLocationSpec &src_location_spec,
172       lldb::SymbolContextItem resolve_scope,
173       lldb_private::SymbolContextList &sc_list) override;
174 
175   void
176   FindGlobalVariables(lldb_private::ConstString name,
177                       const lldb_private::CompilerDeclContext &parent_decl_ctx,
178                       uint32_t max_matches,
179                       lldb_private::VariableList &variables) override;
180 
181   void FindGlobalVariables(const lldb_private::RegularExpression &regex,
182                            uint32_t max_matches,
183                            lldb_private::VariableList &variables) override;
184 
185   void FindFunctions(const lldb_private::Module::LookupInfo &lookup_info,
186                      const lldb_private::CompilerDeclContext &parent_decl_ctx,
187                      bool include_inlines,
188                      lldb_private::SymbolContextList &sc_list) override;
189 
190   void FindFunctions(const lldb_private::RegularExpression &regex,
191                      bool include_inlines,
192                      lldb_private::SymbolContextList &sc_list) override;
193 
194   void GetMangledNamesForFunction(
195       const std::string &scope_qualified_name,
196       std::vector<lldb_private::ConstString> &mangled_names) override;
197 
198   void
199   FindTypes(lldb_private::ConstString name,
200             const lldb_private::CompilerDeclContext &parent_decl_ctx,
201             uint32_t max_matches,
202             llvm::DenseSet<lldb_private::SymbolFile *> &searched_symbol_files,
203             lldb_private::TypeMap &types) override;
204 
205   void FindTypes(llvm::ArrayRef<lldb_private::CompilerContext> pattern,
206                  lldb_private::LanguageSet languages,
207                  llvm::DenseSet<SymbolFile *> &searched_symbol_files,
208                  lldb_private::TypeMap &types) override;
209 
210   void GetTypes(lldb_private::SymbolContextScope *sc_scope,
211                 lldb::TypeClass type_mask,
212                 lldb_private::TypeList &type_list) override;
213 
214   llvm::Expected<lldb::TypeSystemSP>
215   GetTypeSystemForLanguage(lldb::LanguageType language) override;
216 
217   lldb_private::CompilerDeclContext FindNamespace(
218       lldb_private::ConstString name,
219       const lldb_private::CompilerDeclContext &parent_decl_ctx) override;
220 
221   void PreloadSymbols() override;
222 
223   std::recursive_mutex &GetModuleMutex() const override;
224 
225   // PluginInterface protocol
226   llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
227 
228   DWARFDebugAbbrev *DebugAbbrev();
229 
230   DWARFDebugInfo &DebugInfo();
231 
232   DWARFDebugRanges *GetDebugRanges();
233 
234   static bool SupportedVersion(uint16_t version);
235 
236   DWARFDIE
237   GetDeclContextDIEContainingDIE(const DWARFDIE &die);
238 
239   bool
240   HasForwardDeclForClangType(const lldb_private::CompilerType &compiler_type);
241 
242   lldb_private::CompileUnit *
243   GetCompUnitForDWARFCompUnit(DWARFCompileUnit &dwarf_cu);
244 
245   virtual void GetObjCMethods(lldb_private::ConstString class_name,
246                               llvm::function_ref<bool(DWARFDIE die)> callback);
247 
248   bool Supports_DW_AT_APPLE_objc_complete_type(DWARFUnit *cu);
249 
250   lldb_private::DebugMacrosSP ParseDebugMacros(lldb::offset_t *offset);
251 
252   static DWARFDIE GetParentSymbolContextDIE(const DWARFDIE &die);
253 
254   lldb::ModuleSP GetExternalModule(lldb_private::ConstString name);
255 
256   typedef std::map<lldb_private::ConstString, lldb::ModuleSP>
257       ExternalTypeModuleMap;
258 
259   /// Return the list of Clang modules imported by this SymbolFile.
260   const ExternalTypeModuleMap &getExternalTypeModules() const {
261     return m_external_type_modules;
262   }
263 
264   virtual DWARFDIE GetDIE(const DIERef &die_ref);
265 
266   DWARFDIE GetDIE(lldb::user_id_t uid);
267 
268   lldb::user_id_t GetUID(const DWARFBaseDIE &die) {
269     return GetUID(die.GetDIERef());
270   }
271 
272   lldb::user_id_t GetUID(const std::optional<DIERef> &ref) {
273     return ref ? GetUID(*ref) : LLDB_INVALID_UID;
274   }
275 
276   lldb::user_id_t GetUID(DIERef ref);
277 
278   std::shared_ptr<SymbolFileDWARFDwo>
279   GetDwoSymbolFileForCompileUnit(DWARFUnit &dwarf_cu,
280                                  const DWARFDebugInfoEntry &cu_die);
281 
282   virtual std::optional<uint32_t> GetDwoNum() { return std::nullopt; }
283 
284   /// If this is a DWARF object with a single CU, return its DW_AT_dwo_id.
285   std::optional<uint64_t> GetDWOId();
286 
287   static bool
288   DIEInDeclContext(const lldb_private::CompilerDeclContext &parent_decl_ctx,
289                    const DWARFDIE &die);
290 
291   std::vector<std::unique_ptr<lldb_private::CallEdge>>
292   ParseCallEdgesInFunction(UserID func_id) override;
293 
294   void Dump(lldb_private::Stream &s) override;
295 
296   void DumpClangAST(lldb_private::Stream &s) override;
297 
298   lldb_private::DWARFContext &GetDWARFContext() { return m_context; }
299 
300   const std::shared_ptr<SymbolFileDWARFDwo> &GetDwpSymbolFile();
301 
302   lldb_private::FileSpec GetFile(DWARFUnit &unit, size_t file_idx);
303 
304   static llvm::Expected<lldb::TypeSystemSP> GetTypeSystem(DWARFUnit &unit);
305 
306   static DWARFASTParser *GetDWARFParser(DWARFUnit &unit);
307 
308   // CompilerDecl related functions
309 
310   static lldb_private::CompilerDecl GetDecl(const DWARFDIE &die);
311 
312   static lldb_private::CompilerDeclContext GetDeclContext(const DWARFDIE &die);
313 
314   static lldb_private::CompilerDeclContext
315   GetContainingDeclContext(const DWARFDIE &die);
316 
317   static DWARFDeclContext GetDWARFDeclContext(const DWARFDIE &die);
318 
319   static lldb::LanguageType LanguageTypeFromDWARF(uint64_t val);
320 
321   static lldb::LanguageType GetLanguage(DWARFUnit &unit);
322   /// Same as GetLanguage() but reports all C++ versions as C++ (no version).
323   static lldb::LanguageType GetLanguageFamily(DWARFUnit &unit);
324 
325   lldb_private::StatsDuration::Duration GetDebugInfoParseTime() override {
326     return m_parse_time;
327   }
328   lldb_private::StatsDuration::Duration GetDebugInfoIndexTime() override;
329 
330   lldb_private::StatsDuration &GetDebugInfoParseTimeRef() {
331     return m_parse_time;
332   }
333 
334   virtual lldb::offset_t
335   GetVendorDWARFOpcodeSize(const lldb_private::DataExtractor &data,
336                            const lldb::offset_t data_offset,
337                            const uint8_t op) const {
338     return LLDB_INVALID_OFFSET;
339   }
340 
341   virtual bool
342   ParseVendorDWARFOpcode(uint8_t op, const lldb_private::DataExtractor &opcodes,
343                          lldb::offset_t &offset,
344                          std::vector<lldb_private::Value> &stack) const {
345     return false;
346   }
347 
348   lldb_private::ConstString ConstructFunctionDemangledName(const DWARFDIE &die);
349 
350 protected:
351   typedef llvm::DenseMap<const DWARFDebugInfoEntry *, lldb_private::Type *>
352       DIEToTypePtr;
353   typedef llvm::DenseMap<const DWARFDebugInfoEntry *, lldb::VariableSP>
354       DIEToVariableSP;
355   typedef llvm::DenseMap<const DWARFDebugInfoEntry *,
356                          lldb::opaque_compiler_type_t>
357       DIEToClangType;
358   typedef llvm::DenseMap<lldb::opaque_compiler_type_t, DIERef> ClangTypeToDIE;
359 
360   SymbolFileDWARF(const SymbolFileDWARF &) = delete;
361   const SymbolFileDWARF &operator=(const SymbolFileDWARF &) = delete;
362 
363   virtual void LoadSectionData(lldb::SectionType sect_type,
364                                lldb_private::DWARFDataExtractor &data);
365 
366   bool DeclContextMatchesThisSymbolFile(
367       const lldb_private::CompilerDeclContext &decl_ctx);
368 
369   uint32_t CalculateNumCompileUnits() override;
370 
371   lldb::CompUnitSP ParseCompileUnitAtIndex(uint32_t index) override;
372 
373   lldb_private::TypeList &GetTypeList() override;
374 
375   lldb::CompUnitSP ParseCompileUnit(DWARFCompileUnit &dwarf_cu);
376 
377   virtual DWARFCompileUnit *
378   GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit);
379 
380   DWARFUnit *GetNextUnparsedDWARFCompileUnit(DWARFUnit *prev_cu);
381 
382   bool GetFunction(const DWARFDIE &die, lldb_private::SymbolContext &sc);
383 
384   lldb_private::Function *ParseFunction(lldb_private::CompileUnit &comp_unit,
385                                         const DWARFDIE &die);
386 
387   size_t ParseBlocksRecursive(lldb_private::CompileUnit &comp_unit,
388                               lldb_private::Block *parent_block,
389                               const DWARFDIE &die,
390                               lldb::addr_t subprogram_low_pc, uint32_t depth);
391 
392   size_t ParseTypes(const lldb_private::SymbolContext &sc, const DWARFDIE &die,
393                     bool parse_siblings, bool parse_children);
394 
395   lldb::TypeSP ParseType(const lldb_private::SymbolContext &sc,
396                          const DWARFDIE &die, bool *type_is_new);
397 
398   bool ParseSupportFiles(DWARFUnit &dwarf_cu, const lldb::ModuleSP &module,
399                          lldb_private::FileSpecList &support_files);
400 
401   lldb_private::Type *ResolveTypeUID(const DWARFDIE &die,
402                                      bool assert_not_being_parsed);
403 
404   lldb_private::Type *ResolveTypeUID(const DIERef &die_ref);
405 
406   lldb::VariableSP ParseVariableDIE(const lldb_private::SymbolContext &sc,
407                                     const DWARFDIE &die,
408                                     const lldb::addr_t func_low_pc);
409   lldb::VariableSP ParseVariableDIECached(const lldb_private::SymbolContext &sc,
410                                           const DWARFDIE &die);
411 
412   void
413   ParseAndAppendGlobalVariable(const lldb_private::SymbolContext &sc,
414                                const DWARFDIE &die,
415                                lldb_private::VariableList &cc_variable_list);
416 
417   size_t ParseVariablesInFunctionContext(const lldb_private::SymbolContext &sc,
418                                          const DWARFDIE &die,
419                                          const lldb::addr_t func_low_pc);
420 
421   size_t ParseVariablesInFunctionContextRecursive(
422       const lldb_private::SymbolContext &sc, const DWARFDIE &die,
423       lldb::addr_t func_low_pc, DIEArray &accumulator);
424 
425   size_t PopulateBlockVariableList(lldb_private::VariableList &variable_list,
426                                    const lldb_private::SymbolContext &sc,
427                                    llvm::ArrayRef<DIERef> variable_dies,
428                                    lldb::addr_t func_low_pc);
429 
430   DIEArray MergeBlockAbstractParameters(const DWARFDIE &block_die,
431                                         DIEArray &&variable_dies);
432 
433   bool ClassOrStructIsVirtual(const DWARFDIE &die);
434 
435   // Given a die_offset, figure out the symbol context representing that die.
436   bool ResolveFunction(const DWARFDIE &die, bool include_inlines,
437                        lldb_private::SymbolContextList &sc_list);
438 
439   /// Resolve functions and (possibly) blocks for the given file address and a
440   /// compile unit. The compile unit comes from the sc argument and it must be
441   /// set. The results of the lookup (if any) are written back to the symbol
442   /// context.
443   void ResolveFunctionAndBlock(lldb::addr_t file_vm_addr, bool lookup_block,
444                                lldb_private::SymbolContext &sc);
445 
446   virtual lldb::TypeSP
447   FindDefinitionTypeForDWARFDeclContext(const DWARFDIE &die);
448 
449   virtual lldb::TypeSP
450   FindCompleteObjCDefinitionTypeForDIE(const DWARFDIE &die,
451                                        lldb_private::ConstString type_name,
452                                        bool must_be_implementation);
453 
454   lldb_private::Symbol *
455   GetObjCClassSymbol(lldb_private::ConstString objc_class_name);
456 
457   lldb::TypeSP GetTypeForDIE(const DWARFDIE &die,
458                              bool resolve_function_context = false);
459 
460   void SetDebugMapModule(const lldb::ModuleSP &module_sp) {
461     m_debug_map_module_wp = module_sp;
462   }
463 
464   SymbolFileDWARFDebugMap *GetDebugMapSymfile();
465 
466   DWARFDIE
467   FindBlockContainingSpecification(const DIERef &func_die_ref,
468                                    dw_offset_t spec_block_die_offset);
469 
470   DWARFDIE
471   FindBlockContainingSpecification(const DWARFDIE &die,
472                                    dw_offset_t spec_block_die_offset);
473 
474   virtual UniqueDWARFASTTypeMap &GetUniqueDWARFASTTypeMap();
475 
476   bool DIEDeclContextsMatch(const DWARFDIE &die1, const DWARFDIE &die2);
477 
478   bool ClassContainsSelector(const DWARFDIE &class_die,
479                              lldb_private::ConstString selector);
480 
481   /// Parse call site entries (DW_TAG_call_site), including any nested call site
482   /// parameters (DW_TAG_call_site_parameter).
483   std::vector<std::unique_ptr<lldb_private::CallEdge>>
484   CollectCallEdges(lldb::ModuleSP module, DWARFDIE function_die);
485 
486   /// If this symbol file is linked to by a debug map (see
487   /// SymbolFileDWARFDebugMap), and \p file_addr is a file address relative to
488   /// an object file, adjust \p file_addr so that it is relative to the main
489   /// binary. Returns the adjusted address, or \p file_addr if no adjustment is
490   /// needed, on success and LLDB_INVALID_ADDRESS otherwise.
491   lldb::addr_t FixupAddress(lldb::addr_t file_addr);
492 
493   bool FixupAddress(lldb_private::Address &addr);
494 
495   typedef llvm::SetVector<lldb_private::Type *> TypeSet;
496 
497   void GetTypes(const DWARFDIE &die, dw_offset_t min_die_offset,
498                 dw_offset_t max_die_offset, uint32_t type_mask,
499                 TypeSet &type_set);
500 
501   typedef lldb_private::RangeDataVector<lldb::addr_t, lldb::addr_t,
502                                         lldb_private::Variable *>
503       GlobalVariableMap;
504 
505   GlobalVariableMap &GetGlobalAranges();
506 
507   void UpdateExternalModuleListIfNeeded();
508 
509   virtual DIEToTypePtr &GetDIEToType() { return m_die_to_type; }
510 
511   virtual DIEToVariableSP &GetDIEToVariable() { return m_die_to_variable_sp; }
512 
513   virtual DIEToClangType &GetForwardDeclDieToClangType() {
514     return m_forward_decl_die_to_clang_type;
515   }
516 
517   virtual ClangTypeToDIE &GetForwardDeclClangTypeToDie() {
518     return m_forward_decl_clang_type_to_die;
519   }
520 
521   void BuildCuTranslationTable();
522   std::optional<uint32_t> GetDWARFUnitIndex(uint32_t cu_idx);
523 
524   struct DecodedUID {
525     SymbolFileDWARF &dwarf;
526     DIERef ref;
527   };
528   std::optional<DecodedUID> DecodeUID(lldb::user_id_t uid);
529 
530   void FindDwpSymbolFile();
531 
532   const lldb_private::FileSpecList &GetTypeUnitSupportFiles(DWARFTypeUnit &tu);
533 
534   void InitializeFirstCodeAddressRecursive(
535       const lldb_private::SectionList &section_list);
536 
537   void InitializeFirstCodeAddress();
538 
539   lldb::ModuleWP m_debug_map_module_wp;
540   SymbolFileDWARFDebugMap *m_debug_map_symfile;
541 
542   llvm::once_flag m_dwp_symfile_once_flag;
543   std::shared_ptr<SymbolFileDWARFDwo> m_dwp_symfile;
544 
545   lldb_private::DWARFContext m_context;
546 
547   llvm::once_flag m_info_once_flag;
548   std::unique_ptr<DWARFDebugInfo> m_info;
549 
550   std::unique_ptr<DWARFDebugAbbrev> m_abbr;
551   std::unique_ptr<GlobalVariableMap> m_global_aranges_up;
552 
553   typedef std::unordered_map<lldb::offset_t, lldb_private::DebugMacrosSP>
554       DebugMacrosMap;
555   DebugMacrosMap m_debug_macros_map;
556 
557   ExternalTypeModuleMap m_external_type_modules;
558   std::unique_ptr<lldb_private::DWARFIndex> m_index;
559   bool m_fetched_external_modules : 1;
560   lldb_private::LazyBool m_supports_DW_AT_APPLE_objc_complete_type;
561 
562   typedef std::set<DIERef> DIERefSet;
563   typedef llvm::StringMap<DIERefSet> NameToOffsetMap;
564   NameToOffsetMap m_function_scope_qualified_name_map;
565   std::unique_ptr<DWARFDebugRanges> m_ranges;
566   UniqueDWARFASTTypeMap m_unique_ast_type_map;
567   DIEToTypePtr m_die_to_type;
568   DIEToVariableSP m_die_to_variable_sp;
569   DIEToClangType m_forward_decl_die_to_clang_type;
570   ClangTypeToDIE m_forward_decl_clang_type_to_die;
571   llvm::DenseMap<dw_offset_t, lldb_private::FileSpecList>
572       m_type_unit_support_files;
573   std::vector<uint32_t> m_lldb_cu_to_dwarf_unit;
574   /// DWARF does not provide a good way for traditional (concatenating) linkers
575   /// to invalidate debug info describing dead-stripped code. These linkers will
576   /// keep the debug info but resolve any addresses referring to such code as
577   /// zero (BFD) or a small positive integer (zero + relocation addend -- GOLD).
578   /// Try to filter out this debug info by comparing it to the lowest code
579   /// address in the module.
580   lldb::addr_t m_first_code_address = LLDB_INVALID_ADDRESS;
581   lldb_private::StatsDuration m_parse_time;
582   std::atomic_flag m_dwo_warning_issued = ATOMIC_FLAG_INIT;
583 };
584 
585 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_SYMBOLFILEDWARF_H
586