Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Klee Dienes <klee@apple.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Print vector registers in natural format, not hex
Date: Sat, 05 Oct 2002 13:03:00 -0000	[thread overview]
Message-ID: <8CF3C631-D89D-11D6-9DA9-00039396EEB8@apple.com> (raw)
In-Reply-To: <9003-Sat05Oct2002202855+0200-eliz@is.elta.co.il>

The only relevant part of the documentation I noticed was the following:

> Some registers have distinct ``raw'' and ``virtual'' data formats.  
> This
> means that the data format in which the register contents are saved by
> the operating system is not the same one that your program normally
> sees.  For example, the registers of the 68881 floating point
> coprocessor are always saved in ``extended'' (raw) format, but all C
> programs expect to work with ``double'' (virtual) format.  In such
> cases, @value{GDBN} normally works with the virtual format only (the 
> format
> that makes sense for your program), but the @code{info registers} 
> command
> prints the data in both formats.

Fortunately for me, that's exactly what my patch modifies GDB to do 
(although according my interpretation of the documentation, I should 
really be testing for (TYPE_CODE_INT) and not (TYPE_CODE_FLOAT || 
TYPE_VECTOR).  But in practice I suspect the two cases are the same.

The following documentation patch isn't really related to my patch, but 
would probably be a good idea regardless:

diff -u -r1.23 gdb.texinfo
--- gdb.texinfo 2002/09/27 00:36:40     1.23
+++ gdb.texinfo 2002/10/05 20:06:50
@@ -5559,14 +5559,14 @@
  @table @code
  @kindex info registers
  @item info registers
-Print the names and values of all registers except floating-point
-registers (in the selected stack frame).
+Print the names and values of all registers except floating-point and
+vector registers (in the selected stack frame).

  @kindex info all-registers
  @cindex floating point registers
  @item info all-registers
  Print the names and values of all registers, including floating-point
-registers.
+and vector registers.

  @item info registers @var{regname} @dots{}
  Print the @dfn{relativized} value of each specified register 
@var{regname}.


  reply	other threads:[~2002-10-05 20:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-04 13:41 Klee Dienes
2002-10-04 13:52 ` Daniel Jacobowitz
2002-10-04 14:11   ` Klee Dienes
2002-10-04 14:36     ` Daniel Jacobowitz
2002-10-18 16:23       ` Elena Zannoni
2002-11-04 20:02         ` Klee Dienes
2002-11-04 20:34           ` Daniel Jacobowitz
2002-10-05 10:29 ` Eli Zaretskii
2002-10-05 13:03   ` Klee Dienes [this message]
2002-10-06 11:31     ` Eli Zaretskii
2002-10-11  9:26       ` Klee Dienes
2002-10-12  2:01         ` Eli Zaretskii
2002-10-21 17:23         ` Andrew Cagney
2002-10-18 16:37 ` Elena Zannoni
2002-11-05  0:48   ` Klee Dienes

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=8CF3C631-D89D-11D6-9DA9-00039396EEB8@apple.com \
    --to=klee@apple.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