This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC - Python] New ObjFile event & GDB Async
- From: Tom Tromey <tromey at redhat dot com>
- To: Kevin Pouget <kevin dot pouget at gmail dot com>
- Cc: gdb-patches at sourceware dot org, Pedro Alves <pedro at codesourcery dot com>
- Date: Tue, 04 Oct 2011 09:24:16 -0600
- Subject: Re: [RFC - Python] New ObjFile event & GDB Async
- References: <CAPftXU+jJHxERoFs-_MMNy==YeCVjbg-X8FYkrK+fEwtj6fhRg@mail.gmail.com>
>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
Kevin> (the patch intends to provide a Python binding for the 'new
Kevin> objectfile' observer. There's nothing complicated in the code, just
Kevin> emit a new event upon observer notification, which triggers the Python
Kevin> function registered for this event)
Kevin> However, when I want to execute `gdb.execute("some function")` during
Kevin> the callback, the execution ends up in:
[...]
I don't know exactly what is going on here, but I think there are
situations where it is not safe to use gdb.execute. We don't document
this right now, but we should; I think the problem is just that we don't
know all the cases.
Tom