madcow:/home/public/test-tools/gdb # gdb64 tbug64 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 "ppc64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) break main Breakpoint 1 at 0x100007f8: file tbug.c, line 31. (gdb) run Starting program: /home/public/test-tools/gdb/tbug64 [Thread debugging using libthread_db enabled] [New Thread 549757822848 (LWP 26734)] [Switching to Thread 549757822848 (LWP 26734)] Breakpoint 1, main (argc=1, argv=0x1fffffff2b8) at tbug.c:31 31 for (n = 0; n < N; ++n) (gdb) cont Continuing. [New Thread 549762017472 (LWP 26737)] tf(0): begin [New Thread 549766211776 (LWP 26738)] after create tf(1): begin tf(0): end [Thread 549762017472 (LWP 26737) exited] tf(1): end [Thread 549766211776 (LWP 26738) exited] after join Program exited normally. (gdb) clear main Deleted breakpoint 1 (gdb) break tf Breakpoint 2 at 0x1000074c: file tbug.c, line 15. (gdb) run Starting program: /home/public/test-tools/gdb/tbug64 [Thread debugging using libthread_db enabled] [New Thread 549757822848 (LWP 26739)] [New Thread 549762017472 (LWP 26740)] [Switching to Thread 549762017472 (LWP 26740)] Breakpoint 2, tf (arg=0x0) at tbug.c:15 15 int n = (int) (long int) arg; (gdb) cont Continuing. [New Thread 549766211776 (LWP 26741)] [Switching to Thread 549766211776 (LWP 26741)] Breakpoint 2, tf (arg=0x1) at tbug.c:15 15 int n = (int) (long int) arg; (gdb) cont Continuing. tf(1): begin tf(0): begin after create tf(1): end tf(0): end [Thread 549762017472 (LWP 26740) exited] [Thread 549766211776 (LWP 26741) exited] after join Program exited normally. (gdb) quit