Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Switching to thread
@ 2008-05-09  7:53 Eli Zaretskii
  2008-05-09 16:43 ` Joel Brobecker
  2008-05-09 19:20 ` Michael Snyder
  0 siblings, 2 replies; 4+ messages in thread
From: Eli Zaretskii @ 2008-05-09  7:53 UTC (permalink / raw)
  To: gdb

Whenever GDB detects a new thread in the inferior, it announces it,
and also switches to that new thread.  At least that's what I see in
GDB 6.8 for i686-pc-mingw32.

The announcements can be controlled by "set print thread-events", but
what about the switching to the new thread? can I tell GDB not to
switch to it, but rather stay with the one it was before, or is this
somehow hard-wired in the code?

The specific use case where this is important is interrupting an
inferior that appears to be hung with Ctrl-C: on Windows, this creates
a new thread which runs the SIGINT handler, but I don't normally want
to see this thread; instead, I want to know where is the mainline code
looping.  Of course, "thread 1" is all I need to do, but it's easy to
forget, especially if you did a lot of debugging on something other
than Windows before that ;-)

Am I missing something?


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

end of thread, other threads:[~2008-05-09 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-09  7:53 Switching to thread Eli Zaretskii
2008-05-09 16:43 ` Joel Brobecker
2008-05-09 20:44   ` Eli Zaretskii
2008-05-09 19:20 ` Michael Snyder

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