OSDN Git Service

Provide a valid non-multi-arch default for INTEGER_TO_ADDRESS.
authorcagney <cagney>
Mon, 15 Oct 2001 21:38:43 +0000 (21:38 +0000)
committercagney <cagney>
Mon, 15 Oct 2001 21:38:43 +0000 (21:38 +0000)
gdb/ChangeLog
gdb/gdbarch.h
gdb/gdbarch.sh

index a3d4087..3c9dfd0 100644 (file)
@@ -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.
index 7e70917..2a9fe71 100644 (file)
@@ -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);
index cdb9e20..f5855f8 100755 (executable)
@@ -111,7 +111,7 @@ EOF
            then
                fallbackdefault="${predefault}"
            else
-               fallbackdefault=""
+               fallbackdefault="0"
            fi
 
            #NOT YET: See gdbarch.log for basic verification of