aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2000-10-25 20:06:30 +0000
committerFred Fish <fnf@specifix.com>2000-10-25 20:06:30 +0000
commit92e1c15ca06cf47e0b035a657784b4a9790d324e (patch)
tree6d50c95e96662de97fee2802d55dcd56d28f7842 /gdb/mips-tdep.c
parent85a396941012a60ef70ccc3de7de675e67d31325 (diff)
downloadgdb-92e1c15ca06cf47e0b035a657784b4a9790d324e.zip
gdb-92e1c15ca06cf47e0b035a657784b4a9790d324e.tar.gz
gdb-92e1c15ca06cf47e0b035a657784b4a9790d324e.tar.bz2
Approved by Andrew Cagney <ac131313@cygnus.com>
* mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either the current arch or use zero.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index cf48ced..0ca1eaf 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -224,6 +224,13 @@ mips_stack_argsize (void)
#define GDB_TARGET_IS_MIPS64 (gdbarch_tdep (current_gdbarch)->gdb_target_is_mips64 + 0)
#endif
+#if GDB_MULTI_ARCH
+#undef MIPS_DEFAULT_MASK_ADDRESS_P
+#define MIPS_DEFAULT_MASK_ADDRESS_P (gdbarch_tdep (current_gdbarch)->default_mask_address_p)
+#elif !defined (MIPS_DEFAULT_MASK_ADDRESS_P)
+#define MIPS_DEFAULT_MASK_ADDRESS_P (0)
+#endif
+
#define VM_MIN_ADDRESS (CORE_ADDR)0x400000
int gdb_print_insn_mips (bfd_vma, disassemble_info *);
@@ -468,7 +475,7 @@ mips_mask_address_p (void)
return 0;
break;
case CMD_AUTO_BOOLEAN_AUTO:
- return gdbarch_tdep (current_gdbarch)->default_mask_address_p;
+ return MIPS_DEFAULT_MASK_ADDRESS_P;
default:
internal_error ("mips_mask_address_p: bad switch");
return -1;