This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix gdb.base/watch-vfork.exp: Watchpoint triggers after vfork (sw) (timeout) with Linux 2.6.32 and older version
- From: Pedro Alves <palves at redhat dot com>
- To: Hui Zhu <hui_zhu at mentor dot com>, gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Wed, 04 Jun 2014 17:11:14 +0100
- Subject: Re: [PATCH] Fix gdb.base/watch-vfork.exp: Watchpoint triggers after vfork (sw) (timeout) with Linux 2.6.32 and older version
- Authentication-results: sourceware.org; auth=none
- References: <533D17E2 dot 9070402 at mentor dot com> <538636AF dot 9040208 at redhat dot com> <538EDC2D dot 8050002 at mentor dot com>
On 06/04/2014 09:43 AM, Hui Zhu wrote:
> On 05/29/14 03:19, Pedro Alves wrote:
>> And I think we should disable all ptrace options in the child
>> before stepping it, in case some event is reported right
>> at that point, and we mishandle it. Otherwise we'd need to
>> make sure we didn't get an extended wait status before passing
>> it on. But disabling events is just safer.
>
> Could you give me some help on this part?
> I don't know how to disable all ptrace options.
There's a linux_enable_event_reporting function in common/linux-ptrace.c.
Add a linux_disable_event_reporting counterpart, and call that.
--
Pedro Alves