LLDB mainline
dwarf.h
Go to the documentation of this file.
1//===-- dwarf.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_CORE_DWARF_H
10#define LLDB_CORE_DWARF_H
11
12#include <cstdint>
13
14// Get the DWARF constant definitions from llvm
15#include "llvm/BinaryFormat/Dwarf.h"
16
17typedef llvm::dwarf::Attribute dw_attr_t;
18typedef llvm::dwarf::Form dw_form_t;
19typedef llvm::dwarf::Tag dw_tag_t;
20typedef uint64_t dw_addr_t; // Dwarf address define that must be big enough for
21 // any addresses in the compile units that get
22 // parsed
23
24typedef uint64_t dw_offset_t; // Dwarf Debug Information Entry offset for any
25 // offset into the file
26
27/* Constants */
28#define DW_DIE_OFFSET_MAX_BITSIZE 40
29#define DW_INVALID_OFFSET (((uint64_t)1u << DW_DIE_OFFSET_MAX_BITSIZE) - 1)
30#define DW_INVALID_INDEX 0xFFFFFFFFul
31
32// #define DW_ADDR_none 0x0
33
34#define DW_EH_PE_MASK_ENCODING 0x0F
35
36#endif // LLDB_CORE_DWARF_H
uint64_t dw_offset_t
Definition dwarf.h:24
llvm::dwarf::Tag dw_tag_t
Definition dwarf.h:19
llvm::dwarf::Attribute dw_attr_t
Definition dwarf.h:17
uint64_t dw_addr_t
Definition dwarf.h:20
llvm::dwarf::Form dw_form_t
Definition dwarf.h:18