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 
14 using namespace lldb;
15 using namespace lldb_private;
16 
17 void DWARFTypeUnit::Dump(Stream *s) const {
18  s->Printf("0x%8.8x: Type Unit: length = 0x%8.8x, version = 0x%4.4x, "
19  "abbr_offset = 0x%8.8x, addr_size = 0x%2.2x (next CU at "
20  "{0x%8.8x})\n",
21  GetOffset(), GetLength(), GetVersion(), GetAbbrevOffset(),
22  GetAddressByteSize(), GetNextUnitOffset());
23 }
SymbolFileDWARF.h
lldb_private::Stream
Definition: Stream.h:28
DWARFTypeUnit::Dump
void Dump(lldb_private::Stream *s) const override
Definition: DWARFTypeUnit.cpp:17
lldb_private::Stream::Printf
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Definition: Stream.cpp:107
DWARFTypeUnit.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
Stream.h
lldb
Definition: SBAddress.h:15