This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Possible bug with i386 watchpoints on several targets.
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 5 Dec 2001 13:22:01 +0200 (IST)
- Subject: 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.