Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* $thread convenience variable
@ 2006-01-30 20:19 Vladimir Prus
  2006-02-03 10:58 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Vladimir Prus @ 2006-01-30 20:19 UTC (permalink / raw)
  To: gdb


Hello!

Is there some convenience variable that holds the number of the current
thread, or alternatively, the thread where breakpoint was hit. Such a
variable would allow me to write
 
   breakpoint foo.cpp:10 if $thread==1 || $thread==2

If I understand correctly, at the moment gdb can't specify arbitrary
condition on thread number for breakpoint. A breakpoint is either global,
or for one thread.

If such variable does not exist, does it look like a good addition?

- Volodya



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-02-07 19:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-30 20:19 $thread convenience variable Vladimir Prus
2006-02-03 10:58 ` Eli Zaretskii
2006-02-03 11:10   ` Vladimir Prus
2006-02-03 11:28     ` Eli Zaretskii
2006-02-03 11:59       ` Vladimir Prus
2006-02-03 15:14         ` Eli Zaretskii
2006-02-03 13:04     ` Andrew STUBBS
2006-02-03 13:10       ` Vladimir Prus
2006-02-03 13:56         ` Andrew STUBBS
2006-02-06 23:52           ` Daniel Jacobowitz
2006-02-06 23:49       ` Daniel Jacobowitz
2006-02-07 10:59         ` Andrew STUBBS
2006-02-07 19:31           ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox