From: Andrew Cagney Date: Mon, 1 Oct 2001 18:11:19 +0000 (+0000) Subject: * infcmd.c (do_registers_info): Delete code dumping large X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=447aa9a61fab980682523e7c6e08f1c255e38ee0;p=binutils-gdb.git * infcmd.c (do_registers_info): Delete code dumping large registers. Handled by val_print. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 69540c0a9db..55b35654920 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-10-01 Andrew Cagney + + * infcmd.c (do_registers_info): Delete code dumping large + registers. Handled by val_print. + 2001-09-30 Andrew Cagney * gdbarch.sh (gdbarch_alloc): Name the new architecture diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 5229fe1d514..51883f99092 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1534,18 +1534,6 @@ do_registers_info (int regnum, int fpregs) } 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 {