From: Stu Grossman Date: Fri, 24 Apr 1992 14:45:53 +0000 (+0000) Subject: * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72b1aa3096f02ccc9a0cea8475a4236e0a84470e;p=binutils-gdb.git * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d814161fee..682653469d1 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 26edeeab785..17a56bf54af 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')