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: [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.


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