[RFA] 'set print thread-events' to control printing of thread start/exit messages

Daniel Jacobowitz drow@false.org
Thu Dec 20 14:00:00 GMT 2007

On Thu, Dec 20, 2007 at 12:03:17AM -0800, Chris Demetriou wrote:
> [hi!  long time no see!]

No kidding!

> The attached patch makes the printing of thread start/exit messages on
> Linux configurable via 'set print thread-events'.  (A coworker
> commented that for the benchmarks he was trying to debug, printing of
> thread start/exit messages was ... quite tedious.  And i figured a
> patch would be ... quite straightforward.)
> I'm ambivalent about the name of the new option, and the location of
> the option in the docs.  I'm willing to listen to suggestions
> (especially from approvers! 8-) of better alternatives.

Hi Chris, meet Vladimir.  Hi Vladimir, meet Chris.  I suggest one of
you combine this with Vladimir's recently pending patch to unify new
thread printing in a single place for all targets.

BTW, the new test would fail for GNU/Linux + gdbserver; that doesn't
yet have any way to notify new threads, unlike the native support.

Daniel Jacobowitz

More information about the Gdb-patches mailing list