This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb for multi-threaded apps?


All--

I'm trying to use gdb on a simple mt app (contradiction in terms, maybe...). 
The app runs fine, but I wanted to give the gdb a test drive.  However,
whenever I step into or over any pthread code, I get an error message popup
announcing a segmentation fault.  In my case, a call to pthread_cond_init()
causes the SIGSEGV.  

The code is compiled w/ -g, and I can step through the execution for everything
up to the pthreads code.  Is this a limitation w/ gdb or am I missing either a
compilation or debugging flag?  I'm using the full cygwin distribution as of
cygwin-1.3.5-3 on Win2000.

Here's the final state of the "Source Display Status Bar:"

>>> (function:) _libkernel32_a_iname (display mode:) ASSEMBLY

Here's the final state of the "Source Display:"

>>>  Unable to Read Instructions at 0x77e86e74


thanks for the help,
Evan

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]