This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[rfa] Fix 0x0x problem with memory addresses
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: insight at sources dot redhat dot com
- Date: Fri, 06 Dec 2002 01:27:55 -0500
- Subject: [rfa] Fix 0x0x problem with memory addresses
Hello,
This should stop the memory window displaying addresses as:
0x0x12345678
ok to commit?
Andrew
2002-12-06 Andrew Cagney <ac131313@redhat.com>
* generic/gdbtk-cmds.c (gdb_update_mem): Don't add a 0x prefix.
Index: ./gdb/gdbtk/generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.64
diff -u -r1.64 gdbtk-cmds.c
--- ./gdb/gdbtk/generic/gdbtk-cmds.c 4 Dec 2002 16:21:21 -0000 1.64
+++ ./gdb/gdbtk/generic/gdbtk-cmds.c 6 Dec 2002 06:23:48 -0000
@@ -2625,7 +2625,7 @@
for (i = 0; i < nbytes; i += bpr)
{
char s[130];
- sprintf (s, "0x%s", core_addr_to_string (addr + i));
+ sprintf (s, "%s", core_addr_to_string (addr + i));
INDEX ((int) i/bpr, -1);
Tcl_SetVar2 (interp, "data", index, s, 0);