This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Modify address of a gdb.Value


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]