This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[rfc] Zap legacy raw register print code
- To: gdb-patches at sources dot redhat dot com
- Subject: [rfc] Zap legacy raw register print code
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 26 Sep 2001 22:50:27 -0400
Hello,
Following up a post on gdb@, the attached zaps some old, hopefully
redundant, register print code.
I'll check it into the trunk in a few days.
Andrew
2001-09-26 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (do_registers_info): Delete code dumping large
registers. Handled by val_print.
Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.30
diff -p -r1.30 infcmd.c
*** infcmd.c 2001/08/02 11:58:29 1.30
--- infcmd.c 2001/09/27 02:46:44
*************** do_registers_info (int regnum, int fpreg
*** 1534,1551 ****
}
printf_filtered (")");
}
-
- /* FIXME! val_print probably can handle all of these cases now... */
-
- /* Else if virtual format is too long for printf,
- print in hex a byte at a time. */
- else if (REGISTER_VIRTUAL_SIZE (i) > (int) sizeof (long))
- {
- register int j;
- printf_filtered ("0x");
- for (j = 0; j < REGISTER_VIRTUAL_SIZE (i); j++)
- printf_filtered ("%02x", (unsigned char) virtual_buffer[j]);
- }
/* Else print as integer in hex and in decimal. */
else
{
--- 1534,1539 ----