This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/6.0] Dump an unsigned frame buffer
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 29 Jun 2003 09:29:03 -0400
- Subject: [commit/6.0] Dump an unsigned frame buffer
Hello,
This fixes a but in the 'set debug frame 1' code - it was printing out
signed bytes (very confusing output).
commiteed, trunk and 6.
Andrew
2003-06-29 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_register_unwind): Use unsigned char when dumping
the buffer contents.
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.127
diff -u -r1.127 frame.c
--- frame.c 21 Jun 2003 16:51:47 -0000 1.127
+++ frame.c 29 Jun 2003 13:23:18 -0000
@@ -546,7 +546,7 @@
else
{
int i;
- const char *buf = bufferp;
+ const unsigned char *buf = bufferp;
fprintf_unfiltered (gdb_stdlog, "[");
for (i = 0; i < register_size (current_gdbarch, regnum); i++)
fprintf_unfiltered (gdb_stdlog, "%02x", buf[i]);