aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-pinsn.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-03-19 00:18:55 +0000
committerPer Bothner <per@bothner.com>1993-03-19 00:18:55 +0000
commit00cea52f92c8e845506ad147cb9584a31d29d587 (patch)
treeadf879fb6b55a4e6530e9877d87826bee02c5846 /gdb/mips-pinsn.c
parent2e8adbd7f459067936857adc9fbefe9a2982e5d7 (diff)
downloadgdb-00cea52f92c8e845506ad147cb9584a31d29d587.zip
gdb-00cea52f92c8e845506ad147cb9584a31d29d587.tar.gz
gdb-00cea52f92c8e845506ad147cb9584a31d29d587.tar.bz2
* ieee-float.c: Moved to ../libiberty.
* ieee-float.h: Moved to ../include. * Makefile.in: Update accordingly. * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn): Convert to stubs that call disassemblers in ../opcodes/*-dis.c. * m68k-tdep.c: Removed definition of ext_format ext_format_68881; it is now in ../opcodes/m68881-ext.c. * mips-tdep.c (mips_skip_prologue): Try to skip more of the prologue (some callers _do_ care). * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to new interface of ../opcodes/*-dis.c. * ch-exp.y: Add #include <ctype.h>.
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);
}