This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Possible bug with i386 watchpoints on several targets.



On Wed, 5 Dec 2001, Pierre Muller wrote:

> Eli, you didn't answer if you agree that 
> the call to i386_cleanup_dregs is required for all targets using
> standard i386 hardware watchpoints.

I don't know; theoretically, GDB should remove all the watchpoints from 
the debuggee on the way to exit.  If all watchpoints are removed, the 
dr_* variables are cleaned up automatically.

But an explicit call to i386_cleanup_dregs when the debuggee dies cannot 
possibly do any harm, so there should be no reason not to do that, if it 
is sometimes needed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]