diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-08-16 00:13:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-08-16 00:13:03 +0000 |
commit | 4782dc19290aab7cfdad5a15d9d0673323375225 (patch) | |
tree | 55ec4a874fe40e48fa948c9a5cd7cf7f019529bd | |
parent | 8bda49467034dd9dfd0cd773ed1b9a07281b83e8 (diff) | |
download | ppe42-binutils-4782dc19290aab7cfdad5a15d9d0673323375225.tar.gz ppe42-binutils-4782dc19290aab7cfdad5a15d9d0673323375225.zip |
2002-08-15 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
``print_all''. Only print vector registers when ``print_all''.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infcmd.c | 20 |
2 files changed, 18 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9120259deb..87eb84fae8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2002-08-15 Andrew Cagney <ac131313@redhat.com> + * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to + ``print_all''. Only print vector registers when ``print_all''. + +2002-08-15 Andrew Cagney <ac131313@redhat.com> + * i387-tdep.h (i387_print_float_info): Add `args' parameter. * i387-tdep.c (i387_print_float_info): Add `args' parameter. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 42bb5326aa..07b8cf4e79 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1549,9 +1549,9 @@ path_command (char *dirname, int from_tty) #ifdef REGISTER_NAMES char *gdb_register_names[] = REGISTER_NAMES; #endif -/* Print out the machine register regnum. If regnum is -1, - print all registers (fpregs == 1) or all non-float registers - (fpregs == 0). +/* Print out the machine register regnum. If regnum is -1, print all + registers (all == 1) or all non-float and non-vector registers (all + == 0). For most machines, having all_registers_info() print the register(s) one per line is good enough. If a different format @@ -1561,7 +1561,7 @@ char *gdb_register_names[] = REGISTER_NAMES; to provide that format. */ void -do_registers_info (int regnum, int fpregs) +do_registers_info (int regnum, int print_all) { register int i; int numregs = NUM_REGS + NUM_PSEUDO_REGS; @@ -1570,11 +1570,17 @@ do_registers_info (int regnum, int fpregs) for (i = 0; i < numregs; i++) { - /* Decide between printing all regs, nonfloat regs, or specific reg. */ + /* Decide between printing all regs, non-float / vector regs, or + specific reg. */ if (regnum == -1) { - if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT && !fpregs) - continue; + if (!print_all) + { + if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT) + continue; + if (TYPE_VECTOR (REGISTER_VIRTUAL_TYPE (i))) + continue; + } } else { |