LLDB  mainline
SymbolFileDWARFDwoDwp.cpp
Go to the documentation of this file.
1 //===-- SymbolFileDWARFDwoDwp.cpp -------------------------------*- 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 
10 
11 #include "lldb/Core/Section.h"
13 #include "lldb/Symbol/ObjectFile.h"
15 
16 #include "DWARFUnit.h"
17 #include "DWARFDebugInfo.h"
18 
19 using namespace lldb;
20 using namespace lldb_private;
21 
23  ObjectFileSP objfile,
24  DWARFUnit *dwarf_cu,
25  uint64_t dwo_id)
26  : SymbolFileDWARFDwo(objfile, dwarf_cu), m_dwp_symfile(dwp_symfile),
27  m_dwo_id(dwo_id) {}
28 
30  DWARFDataExtractor &data) {
31  if (m_dwp_symfile->LoadSectionData(m_dwo_id, sect_type, data))
32  return;
33 
34  SymbolFileDWARF::LoadSectionData(sect_type, data);
35 }
SymbolFileDWARFDwp * m_dwp_symfile
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
virtual void LoadSectionData(lldb::SectionType sect_type, lldb_private::DWARFDataExtractor &data)
SymbolFileDWARFDwoDwp(SymbolFileDWARFDwp *dwp_symfile, lldb::ObjectFileSP objfile, DWARFUnit *dwarf_cu, uint64_t dwo_id)
void LoadSectionData(lldb::SectionType sect_type, lldb_private::DWARFDataExtractor &data) override
bool LoadSectionData(uint64_t dwo_id, lldb::SectionType sect_type, lldb_private::DWARFDataExtractor &data)
Definition: SBAddress.h:15