LLDB  mainline
DWARFDataExtractor.cpp
Go to the documentation of this file.
1 //===-- DWARFDataExtractor.cpp ----------------------------------*- 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 #include "DWARFDataExtractor.h"
10 
11 namespace lldb_private {
12 
13 uint64_t
15  return GetU32(offset_ptr);
16 }
17 
20  return GetMaxU64(offset_ptr, GetDWARFSizeOfOffset());
21 }
22 }
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
uint32_t GetU32(lldb::offset_t *offset_ptr) const
Extract a uint32_t value from *offset_ptr.
uint64_t GetDWARFInitialLength(lldb::offset_t *offset_ptr) const
uint64_t offset_t
Definition: lldb-types.h:87
uint64_t GetMaxU64(lldb::offset_t *offset_ptr, size_t byte_size) const
Extract an unsigned integer of size byte_size from *offset_ptr.
dw_offset_t GetDWARFOffset(lldb::offset_t *offset_ptr) const