I'm writing a pgm that uses threads, but I can't manage to start it in gdb.
When I run it, it catch a "unknown signal", then is completely locked.
I tried to recompile gdb 5.0, but it still does nothing (on a SuSE
(glibc2.1.3, kernel 2.2.15)).
It catch a "SIG32 realtime" signal, then only lauch the main thread (the
other one is killed ?).
I also tried on Slackware (glibc2.1.3, kernel 2.3.99-pre6), but then gdb
crash (Segmentation fault).
How can I start a pgm with threads in gdb ?
Does gdb uses linux headers and works only on stable kernels ? Can I use it
with 2.3.99 kernels ?
Note : I made a test program with 2 threads, one that prints As and the
it works, but I got only As in gdb if it doesn't crash.