From 3f4844da1dbc1dc8065933e53ce099532bba2cf5 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 31 May 2007 17:05:00 +0000 Subject: [PATCH] 2007-05-31 Markus Deuling * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi. * gdbarch.c, gdbarch.h: Regenerate. --- gdb/ChangeLog | 5 +++++ gdb/gdbarch.c | 5 ----- gdb/gdbarch.h | 6 ------ gdb/gdbarch.sh | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e7994867ba..978427c7859 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-05-31 Markus Deuling + + * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi. + * gdbarch.c, gdbarch.h: Regenerate. + 2007-05-31 Markus Deuling * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 79e1fe0a663..cc143fce755 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -1201,11 +1201,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) fprintf_unfiltered (file, "gdbarch_dump: num_regs = %s\n", paddr_d (current_gdbarch->num_regs)); -#ifdef TARGET_OSABI - fprintf_unfiltered (file, - "gdbarch_dump: TARGET_OSABI # %s\n", - XSTRING (TARGET_OSABI)); -#endif fprintf_unfiltered (file, "gdbarch_dump: osabi = %s\n", paddr_d (current_gdbarch->osabi)); diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index ec596a5b564..66421232821 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -72,12 +72,6 @@ extern int gdbarch_byte_order (struct gdbarch *gdbarch); extern enum gdb_osabi gdbarch_osabi (struct gdbarch *gdbarch); /* set_gdbarch_osabi() - not applicable - pre-initialized. */ -#if !defined (GDB_TM_FILE) && defined (TARGET_OSABI) -#error "Non multi-arch definition of TARGET_OSABI" -#endif -#if !defined (TARGET_OSABI) -#define TARGET_OSABI (gdbarch_osabi (current_gdbarch)) -#endif extern const struct target_desc * gdbarch_target_desc (struct gdbarch *gdbarch); /* set_gdbarch_target_desc() - not applicable - pre-initialized. */ diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 0acbf2bbf09..2905f9468e0 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -371,7 +371,7 @@ i:TARGET_ARCHITECTURE:const struct bfd_arch_info *:bfd_arch_info:::&bfd_default_ # i::int:byte_order:::BFD_ENDIAN_BIG # -i:TARGET_OSABI:enum gdb_osabi:osabi:::GDB_OSABI_UNKNOWN +i::enum gdb_osabi:osabi:::GDB_OSABI_UNKNOWN # i::const struct target_desc *:target_desc:::::::paddr_d ((long) current_gdbarch->target_desc) # Number of bits in a char or unsigned char for the target machine. -- 2.30.2