diff options
Diffstat (limited to 'gdb/arc-newlib-tdep.c')
-rw-r--r-- | gdb/arc-newlib-tdep.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/arc-newlib-tdep.c b/gdb/arc-newlib-tdep.c index 8a83aaf..325e11b 100644 --- a/gdb/arc-newlib-tdep.c +++ b/gdb/arc-newlib-tdep.c @@ -24,13 +24,17 @@ #include "arc-tdep.h" #include "osabi.h" +/* Print an "arc-newlib" debug statement. */ + +#define arc_newlib_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (arc_debug, "arc-newlib", fmt, ##__VA_ARGS__) + /* Implement the 'init_osabi' method of struct gdb_osabi_handler. */ static void arc_newlib_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) { - if (arc_debug) - debug_printf ("arc-newlib: Initialization.\n"); + arc_newlib_debug_printf ("Initialization."); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); @@ -44,8 +48,7 @@ arc_newlib_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) static enum gdb_osabi arc_newlib_osabi_sniffer (bfd *abfd) { - if (arc_debug) - debug_printf ("arc-newlib: OS/ABI sniffer.\n"); + arc_newlib_debug_printf ("OS/ABI sniffer."); /* crt0.S in libgloss for ARC defines .ivt section for interrupt handlers. If this section is not present then this is likely not a newlib - could be |