aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-05-20 17:45:43 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-05-20 17:45:43 +0000
commit70c6b0d18f6f1b1fea679da50fe78a3fc6614f36 (patch)
treea65e1056bbaec233e5dc5a9c6c2540ce0389abd7 /gdb/rs6000-tdep.c
parent49e5c6c59f65cf522025e92f3ace8a136ca47772 (diff)
downloadgdb-70c6b0d18f6f1b1fea679da50fe78a3fc6614f36.zip
gdb-70c6b0d18f6f1b1fea679da50fe78a3fc6614f36.tar.gz
gdb-70c6b0d18f6f1b1fea679da50fe78a3fc6614f36.tar.bz2
2002-05-20 Elena Zannoni <ezannoni@redhat.com>
* rs6000-tdep.c (rs6000_do_registers_info): Simplify code for printing vector registers.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index ee7e9c3..2ba81ea 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");
}