diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-13 14:32:39 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-13 14:32:39 -0500 |
commit | d8d1feb424fe57e54485212698f53fb90edbdf35 (patch) | |
tree | 8dcd8e0c4ce53efdf35f503ddd4a7ad7a958bbf0 /gdb/arc-tdep.h | |
parent | fb0f5031bbbe2bed505fe413e178e05807e8db19 (diff) | |
download | gdb-d8d1feb424fe57e54485212698f53fb90edbdf35.zip gdb-d8d1feb424fe57e54485212698f53fb90edbdf35.tar.gz gdb-d8d1feb424fe57e54485212698f53fb90edbdf35.tar.bz2 |
gdb: convert arc to new-style debug macros
Add the standard arc_debug_printf, but also arc_linux_debug_printf,
arc_linux_nat_debug_printf and arc_newlib_debug_printf to match the
prefixes currently used in the debug messages.
gdb/ChangeLog:
* arc-tdep.h (arc_debug_printf): New.
* arc-tdep.c: Use arc_debug_printf.
* arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
* arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
* arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
Change-Id: I5d937566ed7a1925f7982e8809802c8f0560d8c6
Diffstat (limited to 'gdb/arc-tdep.h')
-rw-r--r-- | gdb/arc-tdep.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/arc-tdep.h b/gdb/arc-tdep.h index 575cd28..8bb005c 100644 --- a/gdb/arc-tdep.h +++ b/gdb/arc-tdep.h @@ -114,6 +114,11 @@ enum arc_regnum extern bool arc_debug; +/* Print an "arc" debug statement. */ + +#define arc_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (arc_debug, "arc", fmt, ##__VA_ARGS__) + /* Target-dependent information. */ struct gdbarch_tdep |