This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4 3/3] Fix "breakpoint always-inserted off"; remove "breakpoint always-inserted auto"
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 22 Sep 2014 15:43:58 +0800
- Subject: Re: [PATCH v4 3/3] Fix "breakpoint always-inserted off"; remove "breakpoint always-inserted auto"
- Authentication-results: sourceware.org; auth=none
- References: <1410994028-24282-1-git-send-email-palves at redhat dot com> <1410994028-24282-4-git-send-email-palves at redhat dot com> <87r3z9zopi dot fsf at codesourcery dot com> <541C7E77 dot 6060704 at redhat dot com> <541E9E40 dot 8070308 at redhat dot com>
On 09/21/2014 05:45 PM, Pedro Alves wrote:
> +void *
> +child_function_1 (void *arg)
> +{
> + volatile unsigned int counter = 1;
> +
> + pthread_barrier_wait (&barrier);
> +
> + while (counter > 0)
> + {
> + counter++;
> + usleep (1);
> +
> + if (!second_thread)
> + continue;
The code doesn't compile as second_thread isn't defined. Is it
second_child?
Otherwise, this patch looks good to me.
--
Yao (éå)