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/m68k-pinsn.c | |
parent | 7b42a5d9fff5882276b0eb0ea2011ccdab4ae030 (diff) | |
download | gdb-72b1aa3096f02ccc9a0cea8475a4236e0a84470e.zip gdb-72b1aa3096f02ccc9a0cea8475a4236e0a84470e.tar.gz gdb-72b1aa3096f02ccc9a0cea8475a4236e0a84470e.tar.bz2 |
* m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
Diffstat (limited to 'gdb/m68k-pinsn.c')
-rw-r--r-- | gdb/m68k-pinsn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m68k-pinsn.c b/gdb/m68k-pinsn.c index 26edeea..17a56bf 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') |