* infcmd.c (do_registers_info): Delete code dumping large

registers.  Handled by val_print.
This commit is contained in:
Andrew Cagney 2001-10-01 18:11:19 +00:00
parent e414a1659e
commit 447aa9a61f
2 changed files with 5 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2001-10-01 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (do_registers_info): Delete code dumping large
registers. Handled by val_print.
2001-09-30 Andrew Cagney <ac131313@redhat.com> 2001-09-30 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (gdbarch_alloc): Name the new architecture * gdbarch.sh (gdbarch_alloc): Name the new architecture

View File

@ -1534,18 +1534,6 @@ do_registers_info (int regnum, int fpregs)
} }
printf_filtered (")"); 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 print as integer in hex and in decimal. */
else else
{ {