This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python] [doc] PR 12930/12802 (clarify Breakpoint::stop doco)
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org, pedro at codesourcery dot com
- Date: Fri, 07 Oct 2011 11:22:10 +0100
- Subject: Re: [python] [doc] PR 12930/12802 (clarify Breakpoint::stop doco)
- References: <m3pqia8jys.fsf@redhat.com> <83obxugeev.fsf@gnu.org>
- Reply-to: pmuldoon at redhat dot com
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Phil Muldoon <pmuldoon@redhat.com>
>> CC: eli@gnu.org, pedro@codesourcery.com
>> Date: Thu, 06 Oct 2011 11:58:51 +0100
>>
>> This patch address the PRs 12930, and 12802 which both arise from
>> confusion regarding the scope of actions in the Breakpoint::stop
>> callback. I have added some documentation to clarify.
>
> Thanks.
>
>> +When @value{GDBN} executes each @code{stop} method, the inferior has
>> +been stopped, but the internal state accounting for that inferior is
>> +undetermined. As the return value from each @code{stop} method has the
>> +potential to instruct @value{GDBN} to restart the inferior, or keep it
>> +in a stopped state, this indeterminate state will remain until the
>> +execution scope of each @code{stop} method has been completed.
>
> Do we really need this part? I feel it doesn't explain anything that
> is instrumental for the rest of this paragraph, and it sounds
> mysterious enough to puzzle and confuse. How about dropping it and
> just leaving the rest (minus the "Therefore" part)?
Yeah that is fine, I was just trying to justify why one should not
tinker with these areas during that time. But that's something we
should have not have in the manual, in retrospect. Thanks for the
review, I will make the changes and check it in.
Cheers
Phil