aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-04-24 14:45:53 +0000
committerStu Grossman <grossman@cygnus>1992-04-24 14:45:53 +0000
commit72b1aa3096f02ccc9a0cea8475a4236e0a84470e (patch)
treefd7f4c6eb07ac1d1b8bb3616ff1b8d158cd234de /gdb
parent7b42a5d9fff5882276b0eb0ea2011ccdab4ae030 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/m68k-pinsn.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2d81416..6826534 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 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')