Date: Tue, 15 Sep 1998 17:08:23 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: Michael Saal <msaal@qosnet.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: can't debug pthreads with gdb Message-ID: <Pine.BSF.4.03.9809151705310.19769-100000@resnet.uoregon.edu> In-Reply-To: <35FE7D90.335AE41F@qosnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Sep 1998, Michael Saal wrote: > 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. gdb makes assumptions that you're debugging a standard linear program, not a multithreaded one. Debugging multithreaded programs is a pain in the tail. I'd suggest profuse amounts of scaffolding (printf()s). Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major 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?Pine.BSF.4.03.9809151705310.19769-100000>