madcow:/home/public/test-tools/gdb # gdb tbug GNU gdb 6.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 "ppc-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) break main Breakpoint 1 at 0x10000630: file tbug.c, line 31. (gdb) run Starting program: /home/public/test-tools/gdb/tbug [Thread debugging using libthread_db enabled] [New Thread 1074020384 (LWP 26705)] [Switching to Thread 1074020384 (LWP 26705)] Breakpoint 1, main (argc=1, argv=0xffffe464) at tbug.c:31 31 for (n = 0; n < N; ++n) (gdb) cont Continuing. [New Thread 1078217504 (LWP 26708)] tf(0): begin [New Thread 1082411808 (LWP 26709)] after create tf(1): begin tf(0): end [Thread 1078217504 (LWP 26708) exited] tf(1): end [Thread 1082411808 (LWP 26709) exited] after join Program exited normally. (gdb) clear main Deleted breakpoint 1 (gdb) break tf Breakpoint 2 at 0x10000594: file tbug.c, line 15. (gdb) run Starting program: /home/public/test-tools/gdb/tbug [Thread debugging using libthread_db enabled] [New Thread 1074020384 (LWP 26710)] reading register pc (#64): No such process. (gdb) cont Continuing. reading register pc (#64): No such process. (gdb) cont Continuing. reading register pc (#64): No such process. (gdb) cont Continuing. reading register pc (#64): No such process. (gdb) quit The program is running. Exit anyway? (y or n) y