Date: Thu, 10 Sep 1998 13:14:44 -0400 From: Michael Saal <msaal@qosnet.com> To: freebsd-questions@FreeBSD.ORG Subject: How do you debugg pthreads with gdb? Message-ID: <35F80904.589E6FF0@qosnet.com>
next in thread | raw e-mail | index | archive | help
I am having a lot of trouble trying to debug a multi threaded app in gdb. I am compiling with -D_THREAD_SAFE , linking with libc_r and used FreeBSD versions 2.2.6 and 2.2.7 If I run my app without gdb or don't set any breakpoints in gdb 'top' says that my apps process uses virtually no CPU cycles. I can step and break in code that is in my primary or main() thread. When I set a breakpoint in a thread created with pthread_create() and the breakpoint is hit top shows my apps process consuming all of the CPU cycles. gdb never breaks and the only way to regain control is to kill my apps process. Any help on how to solve this debugging problem would greatly be appreciated Mike Saal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35F80904.589E6FF0>