1 //===-- dwarf.h -------------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_CORE_DWARF_H
10 #define LLDB_CORE_DWARF_H
12 #include "lldb/Utility/RangeMap.h"
15 // Get the DWARF constant definitions from llvm
16 #include "llvm/BinaryFormat/Dwarf.h"
18 namespace lldb_private {
20 using namespace llvm::dwarf;
24 typedef uint32_t dw_uleb128_t;
25 typedef int32_t dw_sleb128_t;
26 typedef uint16_t dw_attr_t;
27 typedef uint16_t dw_form_t;
28 typedef llvm::dwarf::Tag dw_tag_t;
29 typedef uint64_t dw_addr_t; // Dwarf address define that must be big enough for
30 // any addresses in the compile units that get
33 typedef uint32_t dw_offset_t; // Dwarf Debug Information Entry offset for any
34 // offset into the file
37 #define DW_INVALID_OFFSET (~(dw_offset_t)0)
38 #define DW_INVALID_INDEX 0xFFFFFFFFul
40 // #define DW_ADDR_none 0x0
42 #define DW_EH_PE_MASK_ENCODING 0x0F
44 typedef lldb_private::RangeVector<dw_addr_t, dw_addr_t, 2> DWARFRangeList;
46 #endif // LLDB_CORE_DWARF_H