2002-08-15 Andrew Cagney <ac131313@redhat.com>

* infcmd.c (vector_info): New function.
(_initialize_infcmd): Add command "info vector".
(print_vector_info): New function.

* gdbarch.sh (PRINT_VECTOR_INFO): New method
* gdbarch.h, gdbarch.c: Regenerate.

Index: doc/ChangeLog
2002-08-15  Andrew Cagney  <ac131313@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Document
PRINT_VECTOR_INFO.
* gdb.texinfo (Vector Unit): Document "info vectors" command.
This commit is contained in:
Andrew Cagney
2002-08-16 00:27:46 +00:00
parent b3de5b86c2
commit e76f1f2e33
8 changed files with 113 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2002-08-15 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Document
PRINT_VECTOR_INFO.
* gdb.texinfo (Vector Unit): Document "info vectors" command.
2002-08-13 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Maintenance Commands): Document "maint print

View File

@@ -5583,6 +5583,20 @@ floating point chip. Currently, @samp{info float} is supported on
the ARM and x86 machines.
@end table
@node Vector Unit
@section Vector Unit
@cindex vector unit
Depending on the configuration, @value{GDBN} may be able to give you
more information about the status of the vector unit.
@table @code
@kindex info vector
@item info vector
Display information about the vector unit. The exact contents and
layout vary depending on the hardware.
@end table
@node Memory Region Attributes
@section Memory region attributes
@cindex memory region attributes

View File

@@ -3099,6 +3099,14 @@ If defined, use this to print the value of a register or all registers.
If defined, then the @samp{info float} command will print information about
the processor's floating point unit.
@item PRINT_VECTOR_INFO()
@findex PRINT_VECTOR_INFO
If defined, then the @samp{info vector} command will call this function
to print information about the processor's vector unit.
By default, the @samp{info vector} command will print all vector
registers (the register's type having the vector attribute).
@item DWARF_REG_TO_REGNUM
@findex DWARF_REG_TO_REGNUM
Convert DWARF register number into @value{GDBN} regnum. If not defined,