LLDB  mainline
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 liblldb_DWARFDataExtractor_h_
10 #define liblldb_DWARFDataExtractor_h_
11 
12 #include "lldb/Core/dwarf.h"
14 
15 namespace lldb_private {
16 
18 public:
19  DWARFDataExtractor() = default;
20 
22  lldb::offset_t length)
23  : DataExtractor(data, offset, length) {}
24 
25  uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const;
26 
27  dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const;
28 
29  size_t GetDWARFSizeofInitialLength() const { return 4; }
30  size_t GetDWARFSizeOfOffset() const { return 4; }
31 };
32 }
33 
34 #endif // liblldb_DWARFDataExtractor_h_
An data extractor class.
Definition: DataExtractor.h:47
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
DWARFDataExtractor(const DWARFDataExtractor &data, lldb::offset_t offset, lldb::offset_t length)
uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const
uint64_t offset_t
Definition: lldb-types.h:87
dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const