On 10.11.2012 18:24, Philippe Waroquiers wrote: > On Fri, 2012-11-09 at 07:52 -0700, Tom Tromey wrote: > >> Matthias> Using plain gdb, info threads also lists these user-defined names. >> Matthias> But valgrind and gdb+vgdb only show the thread-ids. >> >> Currently I don't think there is a way for vgdb to report this back to >> gdb. > The thread name could be reported via packet "qThreadExtraInfo," > shown in 'info threads' (this is how Valgrind gdbsrv shows e.g. > the Valgrind thread state and id). > This extra info is just a string, and so GDB will not be able to > understand it contains a thread name. Yes, this is the way I implemented my proof of concept. A bit of googling shows that kgdb (the kernel gdbserver) also sends the comm field (the thread name) in qThreadExtraInfo. I will send a patch tomorrow.
Matthias ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
