Modify address of a gdb.Value
Paul Pluzhnikov
ppluzhnikov@google.com
Mon Jun 15 17:33:00 GMT 2009
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
More information about the Gdb
mailing list