Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: Modify address of a gdb.Value
Date: Mon, 15 Jun 2009 17:33:00 -0000	[thread overview]
Message-ID: <8ac60eac0906151033vccfba7fj5775af977778b901@mail.gmail.com> (raw)
In-Reply-To: <h15uvu$5uq$1@ger.gmane.org>

On Mon, Jun 15, 2009 at 10:05 AM, Vladimir
Prus<vladimir@codesourcery.com> wrote:

> Tom Tromey wrote:
>> Nobody has implemented inferior function calls using Value yet.

But (I believe) an equivalent could be achieved by constructing a string
representation, and then calling gdb.parse_and_eval() on it [1].

However, I've been burned by doing so: in multi-threaded program
parse_and_eval (and I think inferior function call) resumes inferior,
and that causes no end of grief (including possible recursive entry back
into python, which triggers GDB assertions :-(

Tom, you may want to mention this gotcha when you expand parse_and_eval
documentation.

[1] parse_and_eval is not yet in mainline; the current patch for it is here:
http://sourceware.org/ml/gdb-patches/2009-06/msg00326.html

Cheers,
-- 
Paul Pluzhnikov


  reply	other threads:[~2009-06-15 17:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-15  6:22 Niko Sams
2009-06-15 16:43 ` Tom Tromey
2009-06-15 17:05   ` Vladimir Prus
2009-06-15 17:33     ` Paul Pluzhnikov [this message]
2009-06-15 19:27     ` Tom Tromey
2009-06-17  5:51   ` Niko Sams
2009-06-17 15:52     ` Niko Sams
2009-06-17 16:21     ` 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=8ac60eac0906151033vccfba7fj5775af977778b901@mail.gmail.com \
    --to=ppluzhnikov@google.com \
    --cc=gdb@sources.redhat.com \
    --cc=vladimir@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