This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch] PR Python/12692 Add gdb.selected_inferior() to Python interface.
- 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
- Date: Mon, 25 Apr 2011 13:15:59 -0600
- Subject: Re: [Patch] PR Python/12692 Add gdb.selected_inferior() to Python interface.
- References: <BANLkTin_P8idjDmQOU13gScbqOzGJMQ=Dg@mail.gmail.com>
>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
Kevin> I would like to introduce a new Python function,
Kevin> `gdb.selected_inferior()', which returns the Python obj corresponding
Kevin> to current_inferior; let me know what you think about it.
Kevin> I named the function `selected_inferior' according to the existing
Kevin> `selected_thread'.
The code bits are generally ok; one nit.
Kevin> + inf_obj = inferior_to_inferior_object (current_inferior());
Space before open paren.
This is ok with this changed, pending doc review.
Tom