projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas: Update commit 4780e5e4933
[binutils-gdb.git]
/
gdb
/
arc-newlib-tdep.c
diff --git
a/gdb/arc-newlib-tdep.c
b/gdb/arc-newlib-tdep.c
index 8a83aaf6313ae3664294adc4983c142183c36f2a..b11fe226389aa93673b307410e0fb0f02a0c1ed1 100644
(file)
--- a/
gdb/arc-newlib-tdep.c
+++ b/
gdb/arc-newlib-tdep.c
@@
-24,15
+24,19
@@
#include "arc-tdep.h"
#include "osabi.h"
#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)
{
/* 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);
+
arc_gdbarch_tdep *tdep = (arc_gdbarch_tdep *)
gdbarch_tdep (gdbarch);
/* Offset of original PC in longjmp jump buffer (in registers). Value of PC
offset can be found in newlib/libc/machine/arc/setjmp.S. */
/* Offset of original PC in longjmp jump buffer (in registers). Value of PC
offset can be found in newlib/libc/machine/arc/setjmp.S. */
@@
-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)
{
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
/* 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