1 //===-- DWARFDataExtractor.h ------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_DWARFDataExtractor_h_
11 #define liblldb_DWARFDataExtractor_h_
13 // Other libraries and framework includes.
14 #include "lldb/Core/DataExtractor.h"
15 #include "lldb/Core/dwarf.h"
17 namespace lldb_private {
19 class DWARFDataExtractor : public lldb_private::DataExtractor
22 DWARFDataExtractor() : DataExtractor(), m_is_dwarf64(false) { };
24 DWARFDataExtractor (const DWARFDataExtractor& data, lldb::offset_t offset, lldb::offset_t length) :
25 DataExtractor(data, offset, length), m_is_dwarf64(false) { };
28 GetDWARFInitialLength(lldb::offset_t *offset_ptr) const;
31 GetDWARFOffset(lldb::offset_t *offset_ptr) const;
34 GetDWARFSizeofInitialLength() const { return m_is_dwarf64 ? 12 : 4; }
37 mutable bool m_is_dwarf64;
42 #endif // liblldb_DWARFDataExtractor_h_