aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-31 17:05:00 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-31 17:05:00 +0000
commit3f4844da1dbc1dc8065933e53ce099532bba2cf5 (patch)
tree7a731eb29b8f8bf6ba94c5e2004de93d99cda392
parent6c6b19fd98d9d01b5ae0eeda929b6e98084976ea (diff)
downloadgdb-3f4844da1dbc1dc8065933e53ce099532bba2cf5.zip
gdb-3f4844da1dbc1dc8065933e53ce099532bba2cf5.tar.gz
gdb-3f4844da1dbc1dc8065933e53ce099532bba2cf5.tar.bz2
2007-05-31 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi. * gdbarch.c, gdbarch.h: Regenerate.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbarch.c5
-rw-r--r--gdb/gdbarch.h6
-rwxr-xr-xgdb/gdbarch.sh2
4 files changed, 6 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9e79948..978427c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2007-05-31 Markus Deuling <deuling@de.ibm.com>
+ * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
+ * gdbarch.c, gdbarch.h: Regenerate.
+
+2007-05-31 Markus Deuling <deuling@de.ibm.com>
+
* gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
* gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 79e1fe0..cc143fc 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 ec596a5..6642123 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 0acbf2b..2905f94 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.