LLDB
mainline
llvm-project
lldb
include
lldb
Core
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 "
lldb/Utility/RangeMap.h
"
13
#include <cstdint>
14
15
// Get the DWARF constant definitions from llvm
16
#include "llvm/BinaryFormat/Dwarf.h"
17
18
namespace
lldb_private
{
19
namespace
dwarf
{
20
using namespace
llvm::dwarf;
21
}
22
}
23
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
31
// parsed
32
33
typedef
uint64_t
dw_offset_t
;
// Dwarf Debug Information Entry offset for any
34
// offset into the file
35
36
/* Constants */
37
#define DW_DIE_OFFSET_MAX_BITSIZE 40
38
#define DW_INVALID_OFFSET (((uint64_t)1u << DW_DIE_OFFSET_MAX_BITSIZE) - 1)
39
#define DW_INVALID_INDEX 0xFFFFFFFFul
40
41
// #define DW_ADDR_none 0x0
42
43
#define DW_EH_PE_MASK_ENCODING 0x0F
44
45
typedef
lldb_private::RangeVector<dw_addr_t, dw_addr_t, 2>
DWARFRangeList
;
46
47
#endif
// LLDB_CORE_DWARF_H
RangeMap.h
lldb_private::RangeVector
Definition:
RangeMap.h:136
uint16_t
uint32_t
dw_offset_t
uint64_t dw_offset_t
Definition:
dwarf.h:33
DWARFRangeList
lldb_private::RangeVector< dw_addr_t, dw_addr_t, 2 > DWARFRangeList
Definition:
dwarf.h:45
dw_sleb128_t
int32_t dw_sleb128_t
Definition:
dwarf.h:25
dw_tag_t
llvm::dwarf::Tag dw_tag_t
Definition:
dwarf.h:28
dw_attr_t
uint16_t dw_attr_t
Definition:
dwarf.h:26
dw_form_t
uint16_t dw_form_t
Definition:
dwarf.h:27
dw_uleb128_t
uint32_t dw_uleb128_t
Definition:
dwarf.h:24
dw_addr_t
uint64_t dw_addr_t
Definition:
dwarf.h:29
dwarf
Definition:
ABISysV_arc.cpp:61
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAttachInfo.h:14
Generated on Mon Mar 20 2023 04:55:13 for LLDB by
1.9.6