aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-10-15 21:38:44 +0000
committerAndrew Cagney <cagney@redhat.com>2001-10-15 21:38:44 +0000
commit73d3c16e213352d70c923d940d722fd3f529207a (patch)
treef993d0653e67367213c23762c6f047da51d6d0c7 /gdb
parente369bcce2783f452d7e7398c41f865e904aeea33 (diff)
downloadgdb-73d3c16e213352d70c923d940d722fd3f529207a.zip
gdb-73d3c16e213352d70c923d940d722fd3f529207a.tar.gz
gdb-73d3c16e213352d70c923d940d722fd3f529207a.tar.bz2
Provide a valid non-multi-arch default for INTEGER_TO_ADDRESS.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/gdbarch.h2
-rwxr-xr-xgdb/gdbarch.sh2
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a3d4087..3c9dfd0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2001-10-15 Andrew Cagney <ac131313@redhat.com>
+ * gdbarch.sh (fallbackdefault): Set to one when predefault is
+ empty.
+ * gdbarch.h: Regenerate.
+
+2001-10-15 Andrew Cagney <ac131313@redhat.com>
+
* mips-tdep.c (mips_integer_to_address): New function.
(mips_gdbarch_init): Initialize pointer_to_address,
address_to_pointer and integer_to_address.
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 7e70917..2a9fe71 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -1261,7 +1261,7 @@ extern int gdbarch_integer_to_address_p (struct gdbarch *gdbarch);
/* Default (function) for non- multi-arch platforms. */
#if (!GDB_MULTI_ARCH) && !defined (INTEGER_TO_ADDRESS)
-#define INTEGER_TO_ADDRESS(type, buf) ( (type, buf))
+#define INTEGER_TO_ADDRESS(type, buf) (internal_error (__FILE__, __LINE__, "INTEGER_TO_ADDRESS"), 0)
#endif
typedef CORE_ADDR (gdbarch_integer_to_address_ftype) (struct type *type, void *buf);
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index cdb9e20..f5855f8 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -111,7 +111,7 @@ EOF
then
fallbackdefault="${predefault}"
else
- fallbackdefault=""
+ fallbackdefault="0"
fi
#NOT YET: See gdbarch.log for basic verification of