This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rfc] New command ``info vector''


Hello,

(following up a gdb-patches@ thread)

I'd like to propose a new command:

info vector

This command would display information about an architecture's vector unit. Each architecture could customize it but, by default, it would display any vector registers.

On the i386, for instance, it would display the xmm and mmx registers.

I've attached draft documentation.

thoughts?
Andrew
2002-08-10  Andrew Cagney  <ac131313@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Document
	PRINT_VECTOR_INFO.
	* gdb.texinfo (Vector Unit): Document "info vectors" command.

Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.110
diff -u -r1.110 gdb.texinfo
--- doc/gdb.texinfo	10 Aug 2002 00:40:40 -0000	1.110
+++ doc/gdb.texinfo	10 Aug 2002 18:40:40 -0000
@@ -5583,6 +5583,20 @@
 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]