This is the mail archive of the gdb-patches@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: [Patch] PR Python/12692 Add gdb.selected_inferior() to Python interface.


>>>>> "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


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