This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/RFC 3] Remove hardware break and watchpoints at program exit.
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Mark Kettenis <kettenis at science dot uva dot nl>
- Cc: Pierre Muller <muller at cerbere dot u-strasbg dot fr>, gdb-patches at sources dot redhat dot com
- Date: Sun, 13 Jan 2002 10:30:38 +0200 (IST)
- Subject: Re: [RFA/RFC 3] Remove hardware break and watchpoints at program exit.
On 12 Jan 2002, Mark Kettenis wrote:
> Those functions shouldn't be called when there is no debuggee. I
> suspect that there is something wrong with the hardware
> breakpoint/watchpoint implementation at a much higher level.
The problem, IMHO, is that GDB's application level doesn't tell the
target-specific low-end that it's time to clean up the watchpoint
related data structures. The DJGPP port uses mourn_inferior to do
that, but this might not be a good general solution, especially since
so many popular targets use the generic version of mourning.
I think we need to have code that explicitly cleans up watchpoints
when the debuggee exits.