This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH]: Make Linux use the new unified x86 watchpoint support
- To: eliz at is dot elta dot co dot il
- Subject: Re: [PATCH]: Make Linux use the new unified x86 watchpoint support
- From: Mark Salter <msalter at redhat dot com>
- Date: Thu, 29 Mar 2001 11:26:09 -0500
- CC: gdb-patches at sources dot redhat dot com
- References: <Pine.SUN.3.91.1010329160617.4915G-100000@is>
>>>>> Eli Zaretskii writes:
> On Thu, 29 Mar 2001, Mark Salter wrote:
>> I looked at that a little further and it seems that if one of those is
>> defined, then GDB will step the target. It looks like one of those
>> should be defined iff GDB needs to step past the insn causing the
>> watchpoint. That is the case for architectures where the watchpoint
>> is triggered before the insn executes. On the architecture I'm working
>> with, the insn executes before the watchpoint triggers, so GDB doesn't
>> need to step.
> Yes, it seems like there's a similar code fragment which doesn't step the
> target. I will look into it.
> In any case, given that there's a way to cause GDB to remove watchpoints
> without stepping the target, it will solve your problem, yes?
Yes, if GDB can be made to remove watchpoints without stepping and before
watchpoint_check reads from the watched area, then my problem is solved.
--Mark