aboutsummaryrefslogtreecommitdiff
path: root/gdb/arc-tdep.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-13 14:32:39 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-13 14:32:39 -0500
commitd8d1feb424fe57e54485212698f53fb90edbdf35 (patch)
tree8dcd8e0c4ce53efdf35f503ddd4a7ad7a958bbf0 /gdb/arc-tdep.h
parentfb0f5031bbbe2bed505fe413e178e05807e8db19 (diff)
downloadgdb-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.h5
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