Hallo Wenn ich versuche mit GDB eine multithreading applikation zu debuggen, werden bei mir die threads im debugger nicht gestartet. Ohne debugger funktioniert alles. Beispielprogramm im anhang ist eine Qt Applikation für qmake. Die normale ausgabe wäre z.B.: **snip** drzoom@toe:~/Entwicklung/kdevelopthreadbug/bin> ./kdevelopthreadbug start 5 thread Start thread 0 Start thread 1 Start thread 2 Start thread 3 Start thread 4 Thread started Thread started Thread started Thread started Thread started Start thread 5 Start thread 6 Start thread 7 Start thread 8 Start thread 9 Thread started Thread started Thread started Thread started Thread started 5 threads are running... Thread done Thread done Thread done Thread done Thread done Thread done Thread done Thread done Thread done Thread done **snip* Die ausgabe im debugger ist: drzoom@toe:~/Entwicklung/kdevelopthreadbug/bin> /usr/bin/gdb kdevelopthreadbug GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) r Starting program: /home/drzoom/Entwicklung/kdevelopthreadbug/bin/kdevelopthreadbug [Thread debugging using libthread_db enabled] warning: Unable to set global thread event mask: generic error [New Thread 1085896896 (LWP 6096)] start 5 thread Start thread 0 Start thread 1 Start thread 2 Start thread 3 Start thread 4 Start thread 5 Start thread 6 Start thread 7 Start thread 8 Start thread 9 5 threads are running... Dasselbe auch mit dem original SuSE paket des debuggers, die version 6.3 habe ich nachinstalliert nachdem ich den fehler hatte. Kennt jemand das problem, gibt es eine lösung oder ein workaround? Gruss Tobias
participants (1)
-
Tobias Erbsland