aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-pinsn.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-03-06 09:27:47 +0000
committerJohn Gilmore <gnu@cygnus>1992-03-06 09:27:47 +0000
commit2d62e807544fe20b16888b8c8312601788927b97 (patch)
treef64676e9a2fb21138f68f237eecd3837bcf3d461 /gdb/mips-pinsn.c
parentb67cb9d5a968c8294e87290fa933ccdb335240e9 (diff)
downloadgdb-2d62e807544fe20b16888b8c8312601788927b97.zip
gdb-2d62e807544fe20b16888b8c8312601788927b97.tar.gz
gdb-2d62e807544fe20b16888b8c8312601788927b97.tar.bz2
* mips-tdep.c (heuristic_proc_start): Avoid long delays
for remote MIPS by limiting heuristic to 200 byte search. (heuristic_proc_desc): Byte-swapping. (mips_print_register): Cope with failure of read_relative_register_raw_bytes. Byte-swap integers for printing. * mips-pinsn.c (print_insn): Byte-swap instruction.
Diffstat (limited to 'gdb/mips-pinsn.c')
-rw-r--r--gdb/mips-pinsn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-pinsn.c b/gdb/mips-pinsn.c
index 39c82ff..2939328 100644
--- a/gdb/mips-pinsn.c
+++ b/gdb/mips-pinsn.c
@@ -1,5 +1,5 @@
/* Print mips instructions for GDB, the GNU debugger.
- Copyright 1989, 1991 Free Software Foundation, Inc.
+ Copyright 1989, 1991, 1992 Free Software Foundation, Inc.
Contributed by Nobuyuki Hikichi(hikichi@sra.co.jp)
This file is part of GDB.
@@ -115,6 +115,7 @@ print_insn (memaddr, stream)
unsigned long int l;
read_memory (memaddr, buffer, MAXLEN);
+ SWAP_TARGET_AND_HOST (buffer, MAXLEN);
for (i = 0; i < NOPCODES; i++)
{