build-flag: -g -Wall gdb_test.c -o gdb_test -lpthread gdb init script (Auszug): ............ target remote 192.168.23.216:2345 continue info share continue continue continue info thread continue continue ...............(10 x Wiederholungen) ####################################################### lfu@himalia:/ptx/work/mkl/sprecher/testcases/test_case_3 /opt/OSELAS.Toolchain-trunk/arm-ep93xx-linux-gnueabi/gcc-4.1.1-glibc-2.5/bin/arm-ep93xx-linux-gnueabi-gdb ./gdb_test GNU gdb 6.5.50.20061010 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 "--host=i686-host-linux-gnu --target=arm-ep93xx-linux-gnueabi"... Breakpoint 1 at 0x86f8: file gdb_test.c, line 32. Breakpoint 2 at 0x87a4: file gdb_test.c, line 49. Breakpoint 3 at 0x8850: file gdb_test.c, line 66. Breakpoint 4 at 0x88fc: file gdb_test.c, line 83. Breakpoint 5 at 0x89b4: file gdb_test.c, line 101. Breakpoint 6 at 0x89cc: file gdb_test.c, line 102. Breakpoint 7 at 0x89e4: file gdb_test.c, line 103. Breakpoint 8 at 0x89fc: file gdb_test.c, line 104. 0x400007e0 in ?? () [New thread 442] [Switching to thread 442] Breakpoint 5, main () at gdb_test.c:101 101 pthread_create (&p1, NULL, thread1, (void *) 1); From To Syms Read Shared Object Library 0x400007e0 0x40017334 Yes /ptx/work/mkl/sprecher/OSELAS.BSP-Phytec-phyCORE-PXA270-trunk/root-debug/lib/ld-linux.so.3 0x40028ea0 0x40035a88 Yes /ptx/work/mkl/sprecher/OSELAS.BSP-Phytec-phyCORE-PXA270-trunk/root-debug/lib/libpthread.so.0 0x40055ee0 0x401326f0 Yes /ptx/work/mkl/sprecher/OSELAS.BSP-Phytec-phyCORE-PXA270-trunk/root-debug/lib/libc.so.6 Breakpoint 6, main () at gdb_test.c:102 102 pthread_create (&p2, NULL, thread2, (void *) 2); Breakpoint 7, main () at gdb_test.c:103 103 pthread_create (&p3, NULL, thread3, (void *) 3); Breakpoint 8, main () at gdb_test.c:104 104 pthread_create (&p4, NULL, thread4, (void *) 4); 4 thread 446 0x400315bc in __new_sem_wait (sem=0x10cf8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48 3 thread 445 0x400315bc in __new_sem_wait (sem=0x10cf8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48 2 thread 444 0x400315bc in __new_sem_wait (sem=0x10cf8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48 * 1 thread 442 main () at gdb_test.c:104 [Switching to thread 444] Breakpoint 1, thread1 (data=0x1) at gdb_test.c:32 32 printf ("My name is %d. thread %d\n", t, t); ---Type to continue, or q to quit--- [Switching to thread 445] Breakpoint 2, thread2 (data=0x2) at gdb_test.c:49 49 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 446] Breakpoint 3, thread3 (data=0x3) at gdb_test.c:66 66 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 444] Breakpoint 1, thread1 (data=0x1) at gdb_test.c:32 32 printf ("My name is %d. thread %d\n", t, t); [New thread 447] [Switching to thread 447] Breakpoint 4, thread4 (data=0x4) at gdb_test.c:83 83 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 445] Breakpoint 2, thread2 (data=0x2) at gdb_test.c:49 49 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 446] Breakpoint 3, thread3 (data=0x3) at gdb_test.c:66 66 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 444] Breakpoint 1, thread1 (data=0x1) at gdb_test.c:32 32 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 447] Breakpoint 4, thread4 (data=0x4) at gdb_test.c:83 83 printf ("My name is %d. thread %d\n", t, t); [Switching to thread 445] Breakpoint 2, thread2 (data=0x2) at gdb_test.c:49 49 printf ("My name is %d. thread %d\n", t, t);