From: Andrew Cagney <ac131313@redhat.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc; rfa:doco] Add reggroups and their maint commands
Date: Wed, 29 Jan 2003 16:11:00 -0000 [thread overview]
Message-ID: <3E37FD1B.3080300@redhat.com> (raw)
In-Reply-To: <Pine.SUN.3.91.1021023080803.13511F@is>
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
> On Tue, 22 Oct 2002, Andrew Cagney wrote:
(yes, october)
>
>> Eli, now does the revised doco look?
>
>
> Okay, but I have a couple of comments:
>
>
>> +the raw register cache; the command @samp{maint print cooked-registers}
>
>
> Don't we use @code for command names in the user manual?
Looks like both are used :-( Regardless, I've changed it to @code.
>> +@table @samp
>> +@item float_reggroup
>
>
> I think @table @code is better here (the quotes produced by @samp in
> print are redundant).
done.
> Also, I suggest a "@cindex register groups" in gdbint.texinfo where you
> describe the related functions.
yes.
I've committed the attached.
thanks,
Andrew
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 3261 bytes --]
2003-01-29 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (Maintenance Commands): Document `maint print
reggroups' and `maint print register-groups'.
* gdbint.texinfo (Target Architecture Definition): Document
register_reggroup_p.
Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.142
diff -u -r1.142 gdb.texinfo
--- gdb.texinfo 23 Jan 2003 23:03:32 -0000 1.142
+++ gdb.texinfo 29 Jan 2003 16:10:21 -0000
@@ -14631,17 +14631,39 @@
@kindex maint print registers
@kindex maint print raw-registers
@kindex maint print cooked-registers
+@kindex maint print register-groups
@item maint print registers
@itemx maint print raw-registers
@itemx maint print cooked-registers
+@itemx maint print register-groups
Print @value{GDBN}'s internal register data structures.
-The command @samp{maint print raw-registers} includes the contents of
-the raw register cache; and the command @samp{maint print
-cooked-registers} includes the (cooked) value of all registers.
-@xref{Registers,, Registers, gdbint, @value{GDBN} Internals}.
+The command @code{maint print raw-registers} includes the contents of
+the raw register cache; the command @code{maint print cooked-registers}
+includes the (cooked) value of all registers; and the command
+@code{maint print register-groups} includes the groups that each
+register is a member of. @xref{Registers,, Registers, gdbint,
+@value{GDBN} Internals}.
Takes an optional file parameter.
+
+@kindex maint print reggroups
+@item maint print reggroups
+Print @value{GDBN}'s internal register group data structures.
+
+Takes an optional file parameter.
+
+@smallexample
+(gdb) @kbd{maint print reggroups}
+ Group Type
+ general user
+ float user
+ all user
+ vector user
+ system user
+ save internal
+ restore internal
+@end smallexample
@kindex maint set profile
@kindex maint show profile
Index: gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.119
diff -u -r1.119 gdbint.texinfo
--- gdbint.texinfo 15 Jan 2003 19:35:28 -0000 1.119
+++ gdbint.texinfo 29 Jan 2003 16:10:21 -0000
@@ -3510,6 +3510,28 @@
virtual type.
@xref{Target Architecture Definition, , Raw and Virtual Register Representations}.
+@item register_reggroup_p (@var{gdbarch}, @var{regnum}, @var{reggroup})
+@findex register_reggroup_p
+@cindex register groups
+Return non-zero if register @var{regnum} is a member of the register
+group @var{reggroup}.
+
+By default, registers are grouped as follows:
+
+@table @code
+@item float_reggroup
+Any register with a valid name and a floating-point type.
+@item vector_reggroup
+Any register with a valid name and a vector type.
+@item general_reggroup
+Any register with a valid name and a type other than vector or
+floating-point. @samp{float_reggroup}.
+@item save_reggroup
+@itemx restore_reggroup
+@itemx all_reggroup
+Any register with a valid name.
+@end table
+
@item REGISTER_VIRTUAL_SIZE (@var{reg})
@findex REGISTER_VIRTUAL_SIZE
Return the virtual size of @var{reg}; defaults to the size of the
next prev parent reply other threads:[~2003-01-29 16:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 17:41 Andrew Cagney
2002-10-22 23:11 ` Eli Zaretskii
2003-01-29 16:11 ` Andrew Cagney [this message]
2002-11-02 7:16 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E37FD1B.3080300@redhat.com \
--to=ac131313@redhat.com \
--cc=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox