+ gdb -nx ../../gdb GNU gdb Red Hat Linux (6.3.0.0-1.122rh) 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -nx print-threads Starting program: /home/lace/redhat/sources/gdb-clean/gdb -nx print-threads GNU gdb 6.5.50.20060713-cvs Copyright (C) 2006 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) b __pthread_unwind Function "__pthread_unwind" not defined. Make breakpoint pending on future shared library load? (y or [n]) Breakpoint 1 (__pthread_unwind) pending. (gdb) r Starting program: /home/lace/redhat/sources/gdb-clean/testsuite/gdb.threads/print-threads [Thread debugging using libthread_db enabled] [New Thread -1208396096 (LWP 25838)] Breakpoint 2 at 0x443b0634 Pending breakpoint "__pthread_unwind" resolved [New Thread -1208398944 (LWP 26959)] [New Thread -1218888800 (LWP 26960)] [New Thread -1229382752 (LWP 26961)] [New Thread -1239872608 (LWP 26962)] [New Thread -1250362464 (LWP 26963)] [Switching to Thread -1208398944 (zombie)] Breakpoint 2, 0x443b0634 in __pthread_unwind () from /lib/libpthread.so.0 (gdb) info threads 6 Thread -1250362464 (LWP 26963) 0x44031822 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 5 Thread -1239872608 (LWP 26962) 0x44031822 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 4 Thread -1229382752 (LWP 26961) 0x44031822 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 3 Thread -1218888800 (LWP 26960) 0x44031822 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 * 2 Thread -1208398944 (zombie) 0x443b0634 in __pthread_unwind () from /lib/libpthread.so.0 1 Thread -1208396096 (LWP 25838) 0x44031822 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) quit The program is running. Exit anyway? (y or n) Detaching after fork from child process 25838. Detaching after fork from child process 26957. Program exited normally. (gdb) quit