Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@codesourcery.com>
To: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Cc: gdb@sourceware.org
Subject: Re: gdbserver target description: info reg displays or not according to group presence ???
Date: Mon, 02 Aug 2010 02:39:00 -0000	[thread overview]
Message-ID: <20100802023939.GA25401@caradoc.them.org> (raw)
In-Reply-To: <626075219D624850B89B9E0A39D09734@soleil>

On Sat, Jul 31, 2010 at 12:16:57AM +0200, Philippe Waroquiers wrote:
>   GROUP
>        The register group to which this register belongs.  GROUP must be
>        either `general', `float', or `vector'.  If no GROUP is specified,
>        GDB will not display the register in `info registers'.

Separately, note "must be".  Don't use group="s1".  Target-defined
register groups aren't supported.

> Looking at the trace, I see that the correct description is returned
> to gdb. I see that gdb properly has understood the target description
> as it shows the normal and shadow registers.
> However, it does always shows all the shadow registers, not taking
> into account the presence or not of a group.

Yes, it looks like a bug in i386_register_reggroup_p, in the last bit
(group == general_reggroup_p).  One way to fix it would be to add a
range check (&& regnum < I386_NUM_GREGS).

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2010-08-02  2:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 22:16 Philippe Waroquiers
2010-08-02  2:39 ` Daniel Jacobowitz [this message]
2010-08-02 18:07   ` Philippe Waroquiers
2010-08-11 20:23     ` Daniel Jacobowitz
2010-08-12 19:08       ` Philippe Waroquiers
2010-09-12 11:09         ` Philippe Waroquiers

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=20100802023939.GA25401@caradoc.them.org \
    --to=dan@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=philippe.waroquiers@skynet.be \
    /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