[RFC] Global breakpoints
David Daney
ddaney@caviumnetworks.com
Tue May 4 23:34:00 GMT 2010
On 05/04/2010 03:34 PM, Stan Shebs wrote:
[...]
>
> Another possible strategy is to hook into the dynamic loader, and it
> has the advantage of (probably) simplifying breakpoint insertion for
> library code, although it's not as clear to me how it gets GDB's
> attention.
>
Presumably you are talking about off-loading some of the work to some
sort of stub running in the process.
Could you LD_PRELOAD something that communicates with its controlling
GDB via a named-pipe/UNIX domain socket? When an event of interest
occurs, the stub would notify GDB, which would then attach to the process.
David Daney
More information about the Gdb
mailing list