Re: [RFA]: pending breakpoint support [1/3]

Frank Ch. Eigler
2004-02-06T20:17:43Z

jjohnstn wrote:

> +* Pending breakpoint support
> +
> +Support has been added to allow specifying breakpoints in shared libraries
> +that have not yet been loaded. If a breakpoint location cannot be found,
> +GDB queries you if you wish to make the breakpoint pending on a
> +future shared-library load. If and when GDB resolves the breakpoint symbol,
> +the pending breakpoint is removed as one or more regular breakpoints are
> +created. Pending breakpoints are very useful for gcj java debugging.

If I were to word this, it'd be something like:

GDB now supports specifying breakpoints in shared libraries that have
not yet been loaded. If GDB cannot find a breakpoint location the
user specifies, it prompts for whether the breakpoint should be
deferred, pending a future shared library load. If and when GDB
resolves the symbol, it replaces the pending breakpoint with a regular
breakpoint. This feature is very useful for gcj java and sid debugging.

(Does it undo this pending->regular mapping when the shlib is unloaded?)
(Oops, somehow that sid comment slipped in. :-)

- FChE