[RFC 5/5] uprobes: add global breakpoints
Stan Shebs
stanshebs@earthlink.net
Thu Aug 9 18:25:00 GMT 2012
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
More information about the Gdb-patches
mailing list