diff options
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r-- | gdb/target-debug.h | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index b5eb338..f7debe4 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -1,6 +1,6 @@ /* GDB target debugging macros - Copyright (C) 2014-2024 Free Software Foundation, Inc. + Copyright (C) 2014-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef TARGET_DEBUG_H -#define TARGET_DEBUG_H +#ifndef GDB_TARGET_DEBUG_H +#define GDB_TARGET_DEBUG_H /* Printers for the debug target. Each prints an object of a given type to a string that needn't be freed. Most printers are macros, @@ -26,7 +26,7 @@ behavior is needed. References to these printers are automatically generated by - make-target-delegates. See the generated file target-delegates.c. + make-target-delegates. See the generated file target-delegates-gen.c. In a couple cases, a special printing function is defined and then used via the TARGET_DEBUG_PRINTER macro. See target.h. @@ -46,8 +46,8 @@ #include "target/waitstatus.h" /* The functions defined in this header file are not marked "inline", such - that any function not used by target-delegates.c (the only user of this file) - will be flagged as unused. */ + that any function not used by target-delegates-gen.c (the only user of this + file) will be flagged as unused. */ static std::string target_debug_print_target_object (target_object object) @@ -146,6 +146,10 @@ target_debug_print_CORE_ADDR_p (CORE_ADDR *p) { return core_addr_to_string (*p); } static std::string +target_debug_print_CORE_ADDR_r (CORE_ADDR &p) +{ return core_addr_to_string (p); } + +static std::string target_debug_print_int_p (int *p) { return plongest (*p); } @@ -306,6 +310,10 @@ static std::string target_debug_print_target_waitstatus_p (struct target_waitstatus *status) { return status->to_string (); } +static std::string +target_debug_print_const_target_waitstatus_r (const target_waitstatus &status) +{ return status.to_string (); } + /* Functions that are used via TARGET_DEBUG_PRINTER. */ static std::string @@ -368,8 +376,6 @@ target_debug_print_x86_xsave_layout (const x86_xsave_layout &layout) string_appendf (s, ", " #region "_offset=%d", layout.region##_offset); POFFS(avx); - POFFS(bndregs); - POFFS(bndcfg); POFFS(k); POFFS(zmm_h); POFFS(zmm); @@ -381,4 +387,14 @@ target_debug_print_x86_xsave_layout (const x86_xsave_layout &layout) return s; } -#endif /* TARGET_DEBUG_H */ + +static std::string +target_debug_print_displaced_step_finish_status (displaced_step_finish_status s) +{ return displaced_step_finish_status_str (s); } + +static std::string +target_debug_print_displaced_step_prepare_status + (displaced_step_prepare_status s) +{ return displaced_step_prepare_status_str (s); } + +#endif /* GDB_TARGET_DEBUG_H */ |