Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Andrew Burgess <aburgess@broadcom.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] [2/2] Don't raise an error for optimized out sub-fields.
Date: Tue, 30 Jul 2013 14:53:00 -0000	[thread overview]
Message-ID: <51F7D367.8030605@redhat.com> (raw)
In-Reply-To: <51DEC299.8040109@broadcom.com>

On 07/11/2013 03:35 PM, Andrew Burgess wrote:
> When performing a lazy fetch of a sub-bitfield, we raise an error
> if the bits have been optimized-out from the parent value.  This
> is odd, as in most other cases we report the value as "<optimized out>".

Agreed.  For printing, we aim at being graceful, and not throw
errors.  Errors are left for when computing expressions that
would require the contents of a non-optimized out value.  IOW,

 gdb_test "p s.d + 1"

should still throw.  Can you confirm that?  Might as well add it
to the test while at it.

> 
> This patch marks the result of the lazy fetch as optimized out,
> and then returns rather than raising an error.  No regressions,
> and the one test I see that hits this now seems more consistent.

Nice, thanks.

> 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
> 
> 	* value.c (value_fetch_lazy): Mark optimized out values as such
> 	rather than raising an error.
> 
> gdb/testsuite/ChangeLog
> 
> 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
> 
> 	* gdb.dwarf2/pieces-optimized-out.exp: Expect "<optimized out>"

OK.

-- 
Pedro Alves


  reply	other threads:[~2013-07-30 14:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-11 14:35 Andrew Burgess
2013-07-30 14:53 ` Pedro Alves [this message]
2013-07-30 15:38   ` Andrew Burgess

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=51F7D367.8030605@redhat.com \
    --to=palves@redhat.com \
    --cc=aburgess@broadcom.com \
    --cc=gdb-patches@sourceware.org \
    /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