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]: pending breakpoint support [1/3]


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


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