diff options
author | Stu Grossman <grossman@cygnus> | 1992-04-24 14:45:53 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-04-24 14:45:53 +0000 |
commit | 72b1aa3096f02ccc9a0cea8475a4236e0a84470e (patch) | |
tree | fd7f4c6eb07ac1d1b8bb3616ff1b8d158cd234de /gdb | |
parent | 7b42a5d9fff5882276b0eb0ea2011ccdab4ae030 (diff) | |
download | ppe42-binutils-72b1aa3096f02ccc9a0cea8475a4236e0a84470e.tar.gz ppe42-binutils-72b1aa3096f02ccc9a0cea8475a4236e0a84470e.zip |
* m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/m68k-pinsn.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d814161fe..682653469d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com) + + * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed. + Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com) * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice diff --git a/gdb/m68k-pinsn.c b/gdb/m68k-pinsn.c index 26edeeab78..17a56bf54a 100644 --- a/gdb/m68k-pinsn.c +++ b/gdb/m68k-pinsn.c @@ -315,7 +315,7 @@ print_insn_arg (d, buffer, p, addr, stream) if (place == 'b') val = NEXTBYTE (p); else if (place == 'B') - val = buffer[1]; + val = ((char *)buffer)[1]; else if (place == 'w' || place == 'W') val = NEXTWORD (p); else if (place == 'l' || place == 'L') |