This is the mail archive of the gdb@sourceware.org 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: [RFC] Global breakpoints


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


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