This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: Fix for pending breakpoints in manually loaded/unloadedshlibs
- From: Andrew Cagney <cagney at gnu dot org>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 11 Aug 2004 22:48:25 -0400
- Subject: Re: [RFA]: Fix for pending breakpoints in manually loaded/unloadedshlibs
- References: <41191D71.60204@redhat.com>
To fix this, I have added an observer for a new event: solib_unloaded. When update_solib_list discovers a shared library has been unloaded, it notifies all observers (initially this is just breakpoint.c). Breakpoint.c sets up an observer to find all breakpoints in the removed shlib and mark them as non-inserted and bp_shlib_disabled. This solves the problem.
The observer changes are ok (provided eli is ok with the doco description).
Andrew