LLDB
mainline
llvm-project
lldb
source
Plugins
SymbolFile
DWARF
DWARFDataExtractor.h
Go to the documentation of this file.
1
//===-- DWARFDataExtractor.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_DWARFDATAEXTRACTOR_H
10
#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDATAEXTRACTOR_H
11
12
#include "
lldb/Core/dwarf.h
"
13
#include "
lldb/Utility/DataExtractor.h
"
14
#include "llvm/DebugInfo/DWARF/DWARFDataExtractor.h"
15
16
namespace
lldb_private
{
17
18
class
DWARFDataExtractor
:
public
DataExtractor
{
19
public
:
20
DWARFDataExtractor
() =
default
;
21
22
DWARFDataExtractor
(
const
DWARFDataExtractor
&data,
lldb::offset_t
offset,
23
lldb::offset_t
length)
24
:
DataExtractor
(data, offset, length) {}
25
26
uint64_t
GetDWARFInitialLength
(
lldb::offset_t
*offset_ptr)
const
;
27
28
dw_offset_t
GetDWARFOffset
(
lldb::offset_t
*offset_ptr)
const
;
29
30
size_t
GetDWARFSizeofInitialLength
()
const
{
return
4; }
31
size_t
GetDWARFSizeOfOffset
()
const
{
return
4; }
32
33
llvm::DWARFDataExtractor
GetAsLLVMDWARF
()
const
;
34
llvm::DataExtractor
GetAsLLVM
()
const
;
35
};
36
}
// namespace lldb_private
37
38
#endif
// LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDATAEXTRACTOR_H
DataExtractor.h
lldb_private::DWARFDataExtractor
Definition:
DWARFDataExtractor.h:18
lldb_private::DWARFDataExtractor::GetDWARFInitialLength
uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const
Definition:
DWARFDataExtractor.cpp:15
lldb_private::DWARFDataExtractor::DWARFDataExtractor
DWARFDataExtractor(const DWARFDataExtractor &data, lldb::offset_t offset, lldb::offset_t length)
Definition:
DWARFDataExtractor.h:22
lldb_private::DWARFDataExtractor::GetDWARFSizeofInitialLength
size_t GetDWARFSizeofInitialLength() const
Definition:
DWARFDataExtractor.h:30
lldb_private::DWARFDataExtractor::GetDWARFSizeOfOffset
size_t GetDWARFSizeOfOffset() const
Definition:
DWARFDataExtractor.h:31
lldb_private::DWARFDataExtractor::GetAsLLVMDWARF
llvm::DWARFDataExtractor GetAsLLVMDWARF() const
Definition:
DWARFDataExtractor.cpp:24
lldb_private::DWARFDataExtractor::GetDWARFOffset
dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const
Definition:
DWARFDataExtractor.cpp:20
lldb_private::DWARFDataExtractor::GetAsLLVM
llvm::DataExtractor GetAsLLVM() const
Definition:
DWARFDataExtractor.cpp:29
lldb_private::DWARFDataExtractor::DWARFDataExtractor
DWARFDataExtractor()=default
lldb_private::DataExtractor
An data extractor class.
Definition:
DataExtractor.h:48
dwarf.h
dw_offset_t
uint64_t dw_offset_t
Definition:
dwarf.h:30
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb::offset_t
uint64_t offset_t
Definition:
lldb-types.h:85
Generated on Fri Dec 20 2024 17:27:43 for LLDB by
1.9.6