LLDB mainline
DumpRegisterValue.h
Go to the documentation of this file.
1//===-- DumpRegisterValue.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_CORE_DUMPREGISTERVALUE_H
10#define LLDB_CORE_DUMPREGISTERVALUE_H
11
13#include "lldb/lldb-forward.h"
14#include <cstdint>
15
16namespace lldb_private {
17
18class ExecutionContextScope;
19class RegisterValue;
20struct RegisterInfo;
21class Stream;
22
23// The default value of 0 for reg_name_right_align_at means no alignment at
24// all.
25// Set print_flags to true to print register fields if they are available.
26// If you do so, target_sp must be non-null for it to work.
27void DumpRegisterValue(const RegisterValue &reg_val, Stream &s,
28 const RegisterInfo &reg_info, bool prefix_with_name,
29 bool prefix_with_alt_name, lldb::Format format,
30 uint32_t reg_name_right_align_at = 0,
31 ExecutionContextScope *exe_scope = nullptr,
32 bool print_flags = false,
33 lldb::TargetSP target_sp = nullptr);
34
35} // namespace lldb_private
36
37#endif // LLDB_CORE_DUMPREGISTERVALUE_H
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
void DumpRegisterValue(const RegisterValue &reg_val, Stream &s, const RegisterInfo &reg_info, bool prefix_with_name, bool prefix_with_alt_name, lldb::Format format, uint32_t reg_name_right_align_at=0, ExecutionContextScope *exe_scope=nullptr, bool print_flags=false, lldb::TargetSP target_sp=nullptr)
Format
Display format definitions.
std::shared_ptr< lldb_private::Target > TargetSP
Definition: lldb-forward.h:436