This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: x86 hardware breakpoint question
At 17:32 16/11/01 -0500, DJ Delorie wrote:
>
>> I can't find this, Eli. Can you provide any clues on what to look for?
>> I'd like to have hardware brekpoints into cygwin if I can.
>
>SetThreadContext can set the hardware debug registers.
Did you try this out already ?
Because one of the problems that I got with my code
that uses VirtualProtectEx is that I can't change the
single step bit inside a system DLL (under win95 at least).
This forced me to add some complicated code,
that goes up the frame and sets a breakpoint at the first not
system DLL return address.
Outside system DLL I can single step over an
instruction that triggered the page protection
(momentantly disabling that protection) if
the address triggering the page protection is
not a watched address.
So I am surprised to hear that win32
lets you set debug registers, but if that works, great!
Are the debug registers process wide or
thread specific in that case ?