aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-pinsn.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-22 07:46:14 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-22 07:46:14 +0000
commitebeccdf0b8be6670a0de68318fcb838c638c1e58 (patch)
tree317fc149808cd963cee599967dbe881b37b9b4c4 /gdb/mips-pinsn.c
parent8b9f3fffcdf091476590ea71a2835b528c39b72f (diff)
downloadgdb-ebeccdf0b8be6670a0de68318fcb838c638c1e58.zip
gdb-ebeccdf0b8be6670a0de68318fcb838c638c1e58.tar.gz
gdb-ebeccdf0b8be6670a0de68318fcb838c638c1e58.tar.bz2
* mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
instruction's argument. Patch from jonathan@cs.stanford.edu (Jonathan Stone).
Diffstat (limited to 'gdb/mips-pinsn.c')
-rw-r--r--gdb/mips-pinsn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mips-pinsn.c b/gdb/mips-pinsn.c
index 993541f..ca0e825 100644
--- a/gdb/mips-pinsn.c
+++ b/gdb/mips-pinsn.c
@@ -79,6 +79,10 @@ print_insn_arg (d, l, stream, pc)
fprintf (stream, "0x%x", ((struct op_r_fmt *) l)->shamt);
break;
+ case 'B':
+ fprintf (stream, "0x%x", ((struct op_brk_fmt *) l)->code);
+ break;
+
case 'S':
fprintf (stream, "$f%d", ((struct fop_r_fmt *) l)->fs);
break;