public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [rfa] Fix 0x0x problem with memory addresses
@ 2002-12-05 22:28 Andrew Cagney
  2002-12-06  7:47 ` Keith Seitz
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 2002-12-05 22:28 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

Hello,

This should stop the memory window displaying addresses as:

	0x0x12345678

ok to commit?
Andrew

[-- Attachment #2: x --]
[-- Type: text/plain, Size: 752 bytes --]

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);
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-12-10 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-05 22:28 [rfa] Fix 0x0x problem with memory addresses Andrew Cagney
2002-12-06  7:47 ` Keith Seitz
2002-12-06  8:28   ` Andrew Cagney
2002-12-10  8:43     ` Andrew Cagney
2002-12-10 11:48       ` Martin M. Hunt
2002-12-10 11:54         ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).