This is the mail archive of the gdb-patches@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 5/5] uprobes: add global breakpoints


On 8/7/12 9:12 AM, Sebastian Andrzej Siewior wrote:
What I miss right now is an interface to tell the user/gdb that there is a
program that hit a global breakpoint and is waiting for further instructions.
A "tail -f trace" does not work and may contain also a lot of other
informations. I've been thinking about a poll()able file which returns pids of
tasks which are put on hold. Other suggestions?


In case anybody is having a mysterious sense of deja vu about this, my patch last year for global breakpoints ( http://sourceware.org/ml/gdb-patches/2011-06/msg00163.html and friends) had the same issue, and solved this by opening a device /dev/breakpoint and hooking it up to a GDB event handler. (GDB event handling ultimately calls poll() on the collection of event sources.)


Stan
stan@codesourcery.com


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