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

On 30/07/2013 3:53 PM, Pedro Alves wrote:
> 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.

Confirmed that we get an error for the example you gave.  I've
included a test of this as part of this commit.

> 
>> 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.

Committed.

Thanks,
Andrew




      reply	other threads:[~2013-07-30 15:38 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
2013-07-30 15:38   ` Andrew Burgess [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=51F7DDE2.1060003@broadcom.com \
    --to=aburgess@broadcom.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@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