From: Elena Zannoni Date: Mon, 20 May 2002 17:45:43 +0000 (+0000) Subject: 2002-05-20 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70c6b0d18f6f1b1fea679da50fe78a3fc6614f36;p=binutils-gdb.git 2002-05-20 Elena Zannoni * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for printing vector registers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8504cc4a0c7..eaa14d3a5a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-05-20 Elena Zannoni + + * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for + printing vector registers. + 2002-05-19 Andrew Cagney From Fernando Nasser: diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index ee7e9c3aceb..2ba81ea2aba 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1853,19 +1853,16 @@ rs6000_do_registers_info (int regnum, int fpregs) } else { - /* Print as integer in hex and in decimal. */ + /* Print the register in hex. */ + val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, + gdb_stdout, 'x', 1, 0, Val_pretty_default); + /* If not a vector register, print it also in decimal. */ if (!altivec_register_p (i)) { - val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, - gdb_stdout, 'x', 1, 0, Val_pretty_default); printf_filtered ("\t"); val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, gdb_stdout, 0, 1, 0, Val_pretty_default); } - else - /* Print as integer in hex only. */ - val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, - gdb_stdout, 'x', 1, 0, Val_pretty_default); } printf_filtered ("\n"); }