OSDN Git Service

2002-12-06 Andrew Cagney <ac131313@redhat.com>
authorcagney <cagney>
Fri, 6 Dec 2002 16:26:39 +0000 (16:26 +0000)
committercagney <cagney>
Fri, 6 Dec 2002 16:26:39 +0000 (16:26 +0000)
* generic/gdbtk-cmds.c (gdb_update_mem): Don't add a 0x prefix.

gdb/gdbtk/ChangeLog
gdb/gdbtk/generic/gdbtk-cmds.c

index c36e41a..cb61327 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-06  Andrew Cagney  <ac131313@redhat.com>
+
+       * generic/gdbtk-cmds.c (gdb_update_mem): Don't add a 0x prefix.
+
 2002-12-05  Martin M. Hunt  <hunt@redhat.com>
 
        * library/regwin.itb (update): Revert previous patch to this
index 356097e..04df91c 100644 (file)
@@ -2625,7 +2625,7 @@ gdb_update_mem (ClientData clientData, Tcl_Interp *interp,
   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);