This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 6/8] linux-nat.c: better starvation avoidance, handle non-stop mode too
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 07 Jan 2015 14:35:56 +0000
- Subject: Re: [PATCH 6/8] linux-nat.c: better starvation avoidance, handle non-stop mode too
- Authentication-results: sourceware.org; auth=none
- References: <1419625871-28848-1-git-send-email-palves at redhat dot com> <1419625871-28848-7-git-send-email-palves at redhat dot com> <8761cjul2b dot fsf at codesourcery dot com> <54AD330E dot 5020007 at redhat dot com> <87wq4yu1i0 dot fsf at codesourcery dot com>
On 01/07/2015 02:08 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
>
>> That is, the LWP had previously stopped for a breakpoint, and we
>> left that event pending. But if the breakpoint is now gone,
>> GDB core isn't interested in it anymore, so we just discard
>> that event.
>
> The breakpoint is gone because it is removed by user, for example,
> it that correct?
Yeah, removed for any reason, really. Another example would be because it
was a step-resume breakpoint for another thread and that other thread
no longer needs it, so GDB meanwhile removed it.
>
>> Here's the updated patch.
>
> It looks good to me.
Thank you for the review.
Pedro Alves