From ed9a39ebf9f55562c7c582155f6721c3e685ce91 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 22 Dec 1999 21:45:38 +0000 Subject: import gdb-1999-12-21 snapshot --- gdb/mips-tdep.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'gdb/mips-tdep.c') diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 13193df..5940f84 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -2430,8 +2430,18 @@ mips_print_register (regnum, all) gdb_stdout, 0, 1, 0, Val_pretty_default); /* Else print as integer in hex. */ else - print_scalar_formatted (raw_buffer, REGISTER_VIRTUAL_TYPE (regnum), - 'x', 0, gdb_stdout); + { + int offset; + + if (TARGET_BYTE_ORDER == BIG_ENDIAN) + offset = REGISTER_RAW_SIZE (regnum) - REGISTER_VIRTUAL_SIZE (regnum); + else + offset = 0; + + print_scalar_formatted (raw_buffer + offset, + REGISTER_VIRTUAL_TYPE (regnum), + 'x', 0, gdb_stdout); + } } /* Replacement for generic do_registers_info. @@ -3783,6 +3793,7 @@ mips_gdbarch_init (info, arches) switch (info.bfd_arch_info->mach) { case bfd_mach_mips4100: + case bfd_mach_mips4111: tdep->mips_fpu_type = MIPS_FPU_NONE; break; default: -- cgit v1.1