From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: pedro@codesourcery.com
Cc: gdb-patches@sourceware.org, hjl.tools@gmail.com
Subject: Re: PATCH: gdbserver: Clear regcache if buf is NULL
Date: Sun, 31 Oct 2010 13:25:00 -0000 [thread overview]
Message-ID: <201010311321.o9VDL6OT022353@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <201010162149.36890.pedro@codesourcery.com> (message from Pedro Alves on Sat, 16 Oct 2010 21:49:36 +0100)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]
> From: Pedro Alves <pedro@codesourcery.com>
> Date: Sat, 16 Oct 2010 21:49:36 +0100
>
> On Saturday 16 October 2010 21:16:37, H.J. Lu wrote:
> > >
> > > Thanks, and sorry as for not coming back to this promptly.
> > > Hmm, I don't think I have a way to trigger that.
> > > So is the registers' value really zero, or should gdb
> > > ideally present them as not available (and zero is just a
> > > hack)?
> > >
> >
> > You will see it only on machines with XSAVE and enabled in OS.
> > Please see
> >
> > 13.6 XSAVE/XRSTOR AND PROCESSOR EXTENDED STATE
> > MANAGEMENT
> >
> > in
> >
> > Intel® 64 and IA-32 Architectures Software Developers Manual
> > Volume 3A: System Programming Guide, Part 1
> >
> > Basically values in vector registers may not be valid, depending
> > on vector state.
>
> Okay, thanks. The changes I'm working on would make gdb print
> for such registers:
>
> (gdb) info registers
> ...
> foo-register *value not available*
> ...
>
> rather than:
>
> (gdb) info registers
> ...
> foo-register 0x0 0
> ...
>
> Trying to print the register's value will show something
> like "$1 = <unavailable>", and using it's value in expression
> evaluation to determine a computed expression value, an error
> will be reported.
>
> Does that sound good? Or do you think keep using 0 would
> be better in this case?
I think that sounds good.
prev parent reply other threads:[~2010-10-31 13:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 17:44 H.J. Lu
2010-02-03 17:57 ` Daniel Jacobowitz
2010-09-29 1:54 ` Pedro Alves
2010-10-01 1:51 ` H.J. Lu
2010-10-16 20:01 ` Pedro Alves
2010-10-16 20:16 ` H.J. Lu
2010-10-16 20:49 ` Pedro Alves
2010-10-16 22:02 ` H.J. Lu
2010-10-17 8:01 ` Pedro Alves
2010-10-31 13:25 ` Mark Kettenis [this message]
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=201010311321.o9VDL6OT022353@glazunov.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=pedro@codesourcery.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