This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [Python] How to know the current inferior? (exited event)
- From: Tom Tromey <tromey at redhat dot com>
- To: Kevin Pouget <kevin dot pouget at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 20 Apr 2011 09:45:51 -0600
- Subject: Re: [Python] How to know the current inferior? (exited event)
- References: <BANLkTikbxaxT_D3gL5MjnW26Sd8OcAuzQw@mail.gmail.com>
>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
Kevin> is there a way to know the current inferior from GDB's Python
Kevin> interface ?
Hmm, maybe not.
Please file a bug.
Kevin> give the current inferior, but when I receive a `events.exited',
Kevin> gdb.selected_thread() returns None and I can't find any way to know
Kevin> which inferior exited ...
Offhand I think the exited event should also have the inferior as an
attribute. Please file a bug for this too.
Tom