Pending breakpoints
Daniel Jacobowitz
drow@false.org
Fri Mar 21 14:46:00 GMT 2008
On Wed, Feb 27, 2008 at 09:14:23AM +1300, Nick Roberts wrote:
> (gdb) nosharedlibrary
> (gdb) info break
> Num Type Disp Enb Address What
> 1 breakpoint keep y <PENDING>
>
> and the last "info break" no longer says what the breakpoint is for. I don't
> really know when you would unload the shared library, in practice, but I think
> this line should look like the first output from "info break", i.e., include
> sqrt.
I agree that this is wrong.
> The patch below does that. It's a bit of a guess, though, and I've not run
> the testuite.
Seems good to me. We do the same in print_one_breakpoint_location.
The patch is OK with a changelog and a full test run.
Even better would be to discard locations when we shlib_disable a
breakpoint, and get rid of the shlib_disable flag. But doing that may
require that we get rid of shared libraries when we're supposed to.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list