This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Fix removing breakpoint from shared library race
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 9 Sep 2008 13:43:18 -0700
- Subject: Re: [rfc] Fix removing breakpoint from shared library race
- References: <20080818114617.GH16894@adacore.com> <200808181414.m7IEEZtO010275@d12av02.megacenter.de.ibm.com>
Ulrich,
Sorry for the late reply, but:
> This is the situation that my patch attempts to address, by having the
> remove_breakpoints not fail. At some later point, either when GDB
> actually gets to process the solib event, or when GDB tries to
> re-insert the breakpoints, GDB will properly recognize that the
> library has been unloaded and sets the state to solib_disabled.
Just wanted to let you know that you patch makes complete sense to me.
As you pointed out in your first message, this is in fact very similar
to what we do in insert_bp_location.
--
Joel