Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Nathan Froyd <froydnj@codesourcery.com>
Cc: Doug Evans <dje@google.com>, Pedro Alves <pedro@codesourcery.com>,
	        gdb@sourceware.org
Subject: Re: store.exp failure on i686-linux with newer gcc's
Date: Fri, 04 Sep 2009 16:05:00 -0000	[thread overview]
Message-ID: <m3ws4ebsrs.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20090903234357.GR29075@codesourcery.com> (Nathan Froyd's message 	of "Thu, 3 Sep 2009 16:43:57 -0700")

>>>>> "Nathan" == Nathan Froyd <froydnj@codesourcery.com> writes:

Nathan> If it does, maybe somebody will be so kind as to approve it in this
Nathan> thread rather than waiting for a resubmit. :)

Nice patch.

This conflicts with the DW_OP_*_value patch, but I looked and for the
most part it does not seem to be too hard to reconcile them.

Nathan> +static void
Nathan> +write_pieced_value (struct value *to, struct value *from)
Nathan> +{
[...]
Nathan> +  struct frame_info *frame = frame_find_by_id (VALUE_FRAME_ID (to));
Nathan> +
Nathan> +  if (frame == NULL)
Nathan> +    {
Nathan> +      set_value_optimized_out (to, 1);

What impact does this have on the error messages the user sees?
I didn't try to trace through the code; will setting a variable in this
scenario give an error?  (Or silently do nothing?)

Second, this seems like a change in behavior for the value history.
Suppose the user does "print local", which uses this machinery.
Then the inferior exits.  Then the user does "print $1" or whatever...
this ought to print the same value, but now I think the user will get an
error.  So, perhaps it is better to continue to copy in the bits
eagerly instead of postponing them to read_pieced_value.

Nathan> +  struct piece_closure *c = (struct piece_closure *) value_computed_closure (v);

I wish the closure were just passed as an argument to all these
callbacks, but that is just a drive-by complaint, not your problem.

Tom


  reply	other threads:[~2009-09-04 16:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-03 21:50 Doug Evans
2009-09-03 21:58 ` Joel Brobecker
2009-09-03 22:04 ` Pedro Alves
2009-09-03 22:17   ` Doug Evans
2009-09-03 23:44     ` Nathan Froyd
2009-09-04 16:05       ` Tom Tromey [this message]
2009-09-04 17:49         ` Nathan Froyd
2009-09-04 18:38           ` Tom Tromey
2009-09-04 20:17             ` Nathan Froyd
2009-09-04 20:18               ` Doug Evans
2009-09-04 21:23       ` Tom Tromey
2009-09-04 21:28         ` Daniel Jacobowitz
2009-09-04 22:28           ` Tom Tromey

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=m3ws4ebsrs.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=dje@google.com \
    --cc=froydnj@codesourcery.com \
    --cc=gdb@sourceware.org \
    --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