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 12 #include "lldb/lldb-enumerations.h" 13 #include "lldb/lldb-forward.h" 14 #include <cstdint> 15 16 namespace lldb_private { 17 18 class ExecutionContextScope; 19 class RegisterValue; 20 struct RegisterInfo; 21 class 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. 27 void DumpRegisterValue(const RegisterValue ®_val, Stream &s, 28 const RegisterInfo ®_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 38