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