aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-pinsn.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mips-pinsn.c')
-rw-r--r--gdb/mips-pinsn.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/mips-pinsn.c b/gdb/mips-pinsn.c
index c12278f..8594518 100644
--- a/gdb/mips-pinsn.c
+++ b/gdb/mips-pinsn.c
@@ -32,10 +32,15 @@ print_insn (memaddr, stream)
FILE *stream;
{
unsigned char buffer[MAXLEN];
+ disassemble_info info;
+
+ GDB_INIT_DISASSEMBLE_INFO(info, stream);
read_memory (memaddr, buffer, MAXLEN);
/* print_insn_mips is in opcodes/mips-dis.c. */
- return print_insn_mips (memaddr, buffer, stream,
- TARGET_BYTE_ORDER == BIG_ENDIAN);
+ if (TARGET_BYTE_ORDER == BIG_ENDIAN)
+ print_insn_big_mips (memaddr, buffer, &info);
+ else
+ print_insn_little_mips (memaddr, buffer, &info);
}