LLDB mainline
DWARFTypeUnit.cpp
Go to the documentation of this file.
1//===-- DWARFTypeUnit.cpp -------------------------------------------------===//
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#include "DWARFTypeUnit.h"
10
11#include "SymbolFileDWARF.h"
12#include "lldb/Utility/Stream.h"
13
14using namespace lldb;
15using namespace lldb_private;
16
18 s->Format("{0:x16}: Type Unit: length = {1:x8}, version = {2:x4}, "
19 "abbr_offset = {3:x8}, addr_size = {4:x2} (next CU at "
20 "[{5:x16}])\n",
24}
void Dump(lldb_private::Stream *s) const override
dw_offset_t GetAbbrevOffset() const
Definition: DWARFUnit.cpp:442
uint16_t GetVersion() const
Definition: DWARFUnit.h:155
uint8_t GetAddressByteSize() const
Definition: DWARFUnit.h:158
dw_offset_t GetNextUnitOffset() const
Definition: DWARFUnit.h:150
uint32_t GetLength() const
Definition: DWARFUnit.h:154
dw_offset_t GetOffset() const
Definition: DWARFUnit.h:134
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
void Format(const char *format, Args &&... args)
Definition: Stream.h:309
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
Definition: SBAddress.h:15