[PATCH] PR/12691 Add the inferior to Python exited event

Kevin Pouget kevin.pouget@gmail.com
Thu Sep 1 11:29:00 GMT 2011


On Thu, Sep 1, 2011 at 12:07 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Kevin Pouget <kevin.pouget@gmail.com>
>> Date: Thu, 1 Sep 2011 10:44:39 +0200
>> Cc: Tom Tromey <tromey@redhat.com>, gdb-patches@sourceware.org
>>
>> On Wed, Aug 31, 2011 at 7:56 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> >> From: Tom Tromey <tromey@redhat.com>
>> >> Cc: Kevin Pouget <kevin.pouget@gmail.com>, gdb-patches@sourceware.org
>> >> Date: Wed, 31 Aug 2011 11:53:21 -0600
>> >>
>> >> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> >>
>> >> Eli> I'd still like to hear from someone "in the know" how is it possible
>> >> Eli> that the exit code won't be available, but let's not block the commit
>> >> Eli> on that behalf.
>> >>
>> >> It can happen at least on detach.
>> >
>> > Right, thanks.  Perhaps we should mention that in parentheses.
>> >
>>
>> do you want it to appear in my patch, something like
>>
>> > Optional, will exist only in the case that the inferior exited with some status---i.e., not detached)
>>
>> along with
>>
>> >> +An integer representing the exit code which the inferior has returned.
>> > I think we would be better off without that "has" word.
>>
>> ?
>
> No, I meant something like
>
>  An integer representing the exit code, if available, which the
>  inferior has returned.  (The exit code could be unavailable if, for
>  example, @value{GDBN} detaches from the inferior.)
>

right, I've updated the patch, is it fine for you ?


thanks,

Kevin

2011-09-20  Kevin Pouget  <kevin.pouget@st.com>

	PR python/12691: Add the inferior to Python exited event
	* python/py-exitedevent.c (create_exited_event_object): Add inferior
	to exited_event.
	* python/py-event.h (emit_exited_event): Likewise
	* python/-inferior.c (python_inferior_exit): Likewise

 2011-09-01  Kevin Pouget  <kevin.pouget@st.com>

	PR python/12691: Add the inferior to Python exited event
	* gdb.python/py-events.exp: Test the inferior attribute of exited
	event with a fork.
	* gdb.python/py-events.py: Print inferior number on exit.
	* gdb.python/py-events.c: Fork the inferior.

 2011-09-01  Kevin Pouget  <kevin.pouget@st.com>

	PR python/12691: Add the inferior to Python exited event
	* gdb.texinfo (Events In Python): Describe exited inferior attribute.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PR-12691-Add-the-inferior-to-Python-exited-event.patch
Type: text/x-patch
Size: 3687 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110901/c6ee0ee6/attachment.bin>


More information about the Gdb-patches mailing list