1999-02-02 Martin Hunt <hunt@cygnus.com>
authorMartin Hunt <hunt@redhat.com>
Tue, 2 Feb 1999 21:26:56 +0000 (21:26 +0000)
committerMartin Hunt <hunt@redhat.com>
Tue, 2 Feb 1999 21:26:56 +0000 (21:26 +0000)
* gdbtk-cmds.c (get_register): For RAW display, concat all the
pieces together before calling fputs.

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

index 30e3cfc74b312666d36b267aff3a15f97450d019..04d0ca8580fa5cda8747280682532a23e649406c 100644 (file)
@@ -1,3 +1,8 @@
+1999-02-02  Martin Hunt  <hunt@cygnus.com>
+
+       * gdbtk-cmds.c (get_register): For RAW display, concat all the
+       pieces together before calling fputs.
+
 1999-02-01  Martin Hunt  <hunt@cygnus.com>
 
        * gdbtk-cmds.c: (gdb_set_bp): Change the "type" argument
index 9a4040a8500a3233b285b505bee73cd23c998e71..2bdcddf2a94c51bc881aef69c1e96c0c2fd15d86 100644 (file)
@@ -1711,13 +1711,18 @@ get_register (regnum, fp)
   if (format == 'r')
     {
       int j;
-      printf_filtered ("0x");
+      char *ptr, buf[1024];
+
+      strcpy (buf, "0x");
+      ptr = buf + 2;      
       for (j = 0; j < REGISTER_RAW_SIZE (regnum); j++)
         {
           register int idx = TARGET_BYTE_ORDER == BIG_ENDIAN ? j
             : REGISTER_RAW_SIZE (regnum) - 1 - j;
-          printf_filtered ("%02x", (unsigned char)raw_buffer[idx]);
+          sprintf(ptr, "%02x", (unsigned char)raw_buffer[idx]);
+         ptr += 2;
         }
+      fputs_filtered (buf, gdb_stdout);
     }
   else
     val_print (REGISTER_VIRTUAL_TYPE (regnum), virtual_buffer, 0, 0,
This page took 0.028186 seconds and 4 git commands to generate.