LLDB mainline
DWARFLocationExpression.h
Go to the documentation of this file.
1//===-- DWARFLocationExpression.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_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_DWARFLOCATIONEXPRESSION_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_DWARFLOCATIONEXPRESSION_H
11
12#include "lldb/lldb-forward.h"
13#include "llvm/ADT/ArrayRef.h"
14#include "llvm/DebugInfo/CodeView/CodeView.h"
15#include <map>
16
17namespace llvm {
18class APSInt;
19class StringRef;
20namespace codeview {
21class TypeIndex;
22}
23namespace pdb {
24class TpiStream;
25}
26} // namespace llvm
27namespace lldb_private {
28namespace npdb {
30 uint16_t reg_id;
31 uint16_t reg_offset;
32 bool is_at_reg = true;
33};
34
36MakeEnregisteredLocationExpression(llvm::codeview::RegisterId reg,
37 lldb::ModuleSP module);
38
39DWARFExpression MakeRegRelLocationExpression(llvm::codeview::RegisterId reg,
40 int32_t offset,
41 lldb::ModuleSP module);
42DWARFExpression MakeVFrameRelLocationExpression(llvm::StringRef fpo_program,
43 int32_t offset,
44 lldb::ModuleSP module);
45DWARFExpression MakeGlobalLocationExpression(uint16_t section, uint32_t offset,
46 lldb::ModuleSP module);
48 llvm::codeview::TypeIndex underlying_ti, llvm::pdb::TpiStream &tpi,
49 const llvm::APSInt &constant, lldb::ModuleSP module);
51 const std::map<uint64_t, MemberValLocation> &offset_to_location,
52 std::map<uint64_t, size_t> &offset_to_size, size_t total_size,
53 lldb::ModuleSP module);
54} // namespace npdb
55} // namespace lldb_private
56
57#endif
"lldb/Expression/DWARFExpression.h" Encapsulates a DWARF location expression and interprets it.
DWARFExpression MakeRegRelLocationExpression(llvm::codeview::RegisterId reg, int32_t offset, lldb::ModuleSP module)
DWARFExpression MakeVFrameRelLocationExpression(llvm::StringRef fpo_program, int32_t offset, lldb::ModuleSP module)
DWARFExpression MakeGlobalLocationExpression(uint16_t section, uint32_t offset, lldb::ModuleSP module)
DWARFExpression MakeEnregisteredLocationExpressionForComposite(const std::map< uint64_t, MemberValLocation > &offset_to_location, std::map< uint64_t, size_t > &offset_to_size, size_t total_size, lldb::ModuleSP module)
DWARFExpression MakeEnregisteredLocationExpression(llvm::codeview::RegisterId reg, lldb::ModuleSP module)
DWARFExpression MakeConstantLocationExpression(llvm::codeview::TypeIndex underlying_ti, llvm::pdb::TpiStream &tpi, const llvm::APSInt &constant, lldb::ModuleSP module)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Module > ModuleSP
Definition: lldb-forward.h:373
Definition: Debugger.h:54