This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Pthread question for GDB?
- From: Jan Chludzinski <jan dot chludzinski at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Jul 2011 05:43:42 -0400
- Subject: Pthread question for GDB?
If I'm stepping through main() in GDB, when I step past
pthread_create() should the associated (newly created) thread begin
executing independently of main() (i.e., the "main" thread)?
Executing independently in the background?
Red Hat's GDB documentation says: "In all-stop mode, whenever your
program stops under gdb for any reason, all threads of execution stop,
not just the current thread. This allows you to examine the overall
state of the program, including switching between threads, without
worrying that things may change underfoot. "
I assume "all-stop mode" is the default?
---Jan
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple