LLDB mainline
PDBLocationToDWARFExpression.h
Go to the documentation of this file.
1//===-- PDBLocationToDWARFExpression.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_PDB_PDBLOCATIONTODWARFEXPRESSION_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_PDB_PDBLOCATIONTODWARFEXPRESSION_H
11
12#include "lldb/Core/Module.h"
14
15namespace lldb_private {
16class DWARFExpression;
17}
18
19namespace llvm {
20namespace pdb {
21class PDBSymbolData;
22}
23} // namespace llvm
24
25/// Converts a location information from a PDB symbol to a DWARF expression
26///
27/// \param[in] module
28/// The module \a symbol belongs to.
29///
30/// \param[in] symbol
31/// The symbol with a location information to convert.
32///
33/// \param[in] ranges
34/// Ranges where this variable is valid.
35///
36/// \param[out] is_constant
37/// Set to \b true if the result expression is a constant value data,
38/// and \b false if it is a DWARF bytecode.
39///
40/// \return
41/// The DWARF expression corresponding to the location data of \a symbol.
44 const llvm::pdb::PDBSymbolData &symbol,
46 bool &is_constant);
47#endif
lldb_private::DWARFExpression ConvertPDBLocationToDWARFExpression(lldb::ModuleSP module, const llvm::pdb::PDBSymbolData &symbol, const lldb_private::Variable::RangeList &ranges, bool &is_constant)
Converts a location information from a PDB symbol to a DWARF expression.
"lldb/Expression/DWARFExpression.h" Encapsulates a DWARF location expression and interprets it.
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
std::shared_ptr< lldb_private::Module > ModuleSP
Definition: lldb-forward.h:365
Definition: Debugger.h:53