clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
//===-- dwarf.h -------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLDB_CORE_DWARF_H
|
|
#define LLDB_CORE_DWARF_H
|
|
|
|
#include "lldb/Utility/RangeMap.h"
|
|
#include <cstdint>
|
|
|
|
// Get the DWARF constant definitions from llvm
|
|
#include "llvm/BinaryFormat/Dwarf.h"
|
|
|
|
namespace lldb_private {
|
|
namespace dwarf {
|
|
using namespace llvm::dwarf;
|
|
}
|
|
}
|
|
|
|
typedef llvm::dwarf::Attribute dw_attr_t;
|
|
typedef llvm::dwarf::Form dw_form_t;
|
|
typedef llvm::dwarf::Tag dw_tag_t;
|
|
typedef uint64_t dw_addr_t; // Dwarf address define that must be big enough for
|
|
// any addresses in the compile units that get
|
|
// parsed
|
|
|
|
typedef uint64_t dw_offset_t; // Dwarf Debug Information Entry offset for any
|
|
// offset into the file
|
|
|
|
/* Constants */
|
|
#define DW_DIE_OFFSET_MAX_BITSIZE 40
|
|
#define DW_INVALID_OFFSET (((uint64_t)1u << DW_DIE_OFFSET_MAX_BITSIZE) - 1)
|
|
#define DW_INVALID_INDEX 0xFFFFFFFFul
|
|
|
|
// #define DW_ADDR_none 0x0
|
|
|
|
#define DW_EH_PE_MASK_ENCODING 0x0F
|
|
|
|
typedef lldb_private::RangeVector<dw_addr_t, dw_addr_t, 2> DWARFRangeList;
|
|
|
|
#endif // LLDB_CORE_DWARF_H
|