Test Run By dje on Fri Dec 15 17:47:29 2017 Native configuration is s390x-ibm-linux-gnu === gdb tests === Schedule of variations: native-gdbserver Running target native-gdbserver Using /home/dje/src/binutils-gdb/gdb/testsuite/boards/../boards/native-gdbserver.exp as board description file for target. Using /home/dje/src/binutils-gdb/gdb/testsuite/boards/../boards/gdbserver-base.exp as board description file for target. Using /home/dje/src/binutils-gdb/gdb/testsuite/boards/../boards/local-board.exp as board description file for target. Using /home/dje/src/binutils-gdb/gdb/testsuite/config/gdbserver.exp as tool-and-target-specific interface file. Running /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork.exp ... get_compiler_info: gcc-4-9-2 Executing on host: gcc -DFOLLOW_PARENT -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c (timeout = 300) spawn -ignore SIGHUP gcc -DFOLLOW_PARENT -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c Executing on host: gcc -DFOLLOW_PARENT -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st1.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-parent.c (timeout = 300) spawn -ignore SIGHUP gcc -DFOLLOW_PARENT -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st1.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-parent.c Executing on host: gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st0.o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st1.o -DFOLLOW_PARENT -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st (timeout = 300) spawn -ignore SIGHUP gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st0.o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st1.o -DFOLLOW_PARENT -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st spawn /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory -ex set auto-connect-native-target off GNU gdb (GDB) 8.0.50.20171215-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "s390x-ibm-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st...done. (gdb) show detach-on-fork Whether gdb will detach the child of a fork is on. (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: show detach-on-fork set follow-fork-mode parent (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: set follow-fork-mode parent show follow-fork-mode Debugger response to a program call of fork or vfork is "parent". (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: show follow-fork-mode handle SIGUSR1 nostop noprint pass Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: handle SIGUSR1 nostop noprint pass delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x80000926: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c, line 43. (gdb) kill The program is not being run. (gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2346 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-st created; pid = 8984 Listening on port 2346 target remote localhost:2346 Remote debugging using localhost:2346 Reading /lib/ld64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld64.so.1 from remote target... Reading symbols from target:/lib/ld64.so.1...Reading /lib/ld-2.19.so from remote target... Reading /lib/.debug/ld-2.19.so from remote target... (no debugging symbols found)...done. 0x000003fffdfd9280 in ?? () from target:/lib/ld64.so.1 (gdb) continue Continuing. Reading /lib/s390x-linux-gnu/libm.so.6 from remote target... Reading /lib/s390x-linux-gnu/libc.so.6 from remote target... Reading /lib/s390x-linux-gnu/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/libc-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libc-2.19.so from remote target... Breakpoint 1, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c:43 43 setbuf (stdout, NULL); (gdb) watch var Hardware watchpoint 2: var (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: set the watchpoint hbreak marker Hardware assisted breakpoint 3 at 0x800008f2: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c, line 33. (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: hbreak marker break mark_exit Breakpoint 4 at 0x8000090a: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c, line 38. (gdb) continue Continuing. Warning: Cannot insert hardware breakpoint 3. Could not insert hardware watchpoint 2. Could not insert hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints. Command aborted. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: hardware breakpoints work continue Continuing. FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: watchpoints work (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: breakpoint after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: watchpoint after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: breakpoint after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: watchpoint after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: singlethreaded: finish (timeout) Executing on host: gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-parent.c -DFOLLOW_PARENT -DTHREAD -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt (timeout = 300) spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-parent.c -DFOLLOW_PARENT -DTHREAD -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status compiler exited with status 1 output is: /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status Executing on host: gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-parent.c -DFOLLOW_PARENT -DTHREAD -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt (timeout = 300) spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-parent.c -DFOLLOW_PARENT -DTHREAD -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt PASS: gdb.threads/watchpoint-fork.exp: parent: multithreaded: successfully compiled posix threads test case Remote debugging from host 127.0.0.1 monitor exit spawn /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory -ex set auto-connect-native-target off GNU gdb (GDB) 8.0.50.20171215-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "s390x-ibm-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt...done. (gdb) set follow-fork-mode parent (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: multithreaded: set follow-fork-mode parent handle SIGUSR1 nostop noprint pass Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: multithreaded: handle SIGUSR1 nostop noprint pass delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x80000d06: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 117. (gdb) kill The program is not being run. (gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2347 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-parent-mt created; pid = 9447 Listening on port 2347 target remote localhost:2347 Remote debugging using localhost:2347 Reading /lib/ld64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld64.so.1 from remote target... Reading symbols from target:/lib/ld64.so.1...Reading /lib/ld-2.19.so from remote target... Reading /lib/.debug/ld-2.19.so from remote target... (no debugging symbols found)...done. 0x000003fffdfd9280 in ?? () from target:/lib/ld64.so.1 (gdb) continue Continuing. Reading /lib/s390x-linux-gnu/libpthread.so.0 from remote target... Reading /lib/s390x-linux-gnu/libm.so.6 from remote target... Reading /lib/s390x-linux-gnu/libc.so.6 from remote target... Reading /lib/s390x-linux-gnu/libpthread-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libpthread-2.19.so from remote target... Reading /lib/s390x-linux-gnu/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/libc-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libc-2.19.so from remote target... Breakpoint 1, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c:117 117 setbuf (stdout, NULL); (gdb) watch var Hardware watchpoint 2: var (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: multithreaded: set the watchpoint hbreak marker Hardware assisted breakpoint 3 at 0x80000ab2: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 42. (gdb) PASS: gdb.threads/watchpoint-fork.exp: parent: multithreaded: hbreak marker break mark_exit Breakpoint 4 at 0x80000ae2: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 52. (gdb) continue Continuing. Warning: Cannot insert hardware breakpoint 3. Could not insert hardware watchpoint 2. Could not insert hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints. Command aborted. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: hardware breakpoints work continue Continuing. FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: singlethread watchpoints work (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: multithreaded watchpoints work at A (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: multithreaded watchpoints work at B (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: breakpoint (A) after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: watchpoint A after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: watchpoint B after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: breakpoint (A) after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: watchpoint A after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: watchpoint B after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: parent: multithreaded: finish (timeout) Executing on host: gcc -DFOLLOW_CHILD -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c (timeout = 300) spawn -ignore SIGHUP gcc -DFOLLOW_CHILD -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c Executing on host: gcc -DFOLLOW_CHILD -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st1.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-child.c (timeout = 300) spawn -ignore SIGHUP gcc -DFOLLOW_CHILD -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st1.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-child.c Executing on host: gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st0.o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st1.o -DFOLLOW_CHILD -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st (timeout = 300) spawn -ignore SIGHUP gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st0.o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st1.o -DFOLLOW_CHILD -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st Remote debugging from host 127.0.0.1 monitor exit spawn /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory -ex set auto-connect-native-target off GNU gdb (GDB) 8.0.50.20171215-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "s390x-ibm-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st...done. (gdb) show detach-on-fork Whether gdb will detach the child of a fork is on. (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: show detach-on-fork set follow-fork-mode child (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: set follow-fork-mode child show follow-fork-mode Debugger response to a program call of fork or vfork is "child". (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: show follow-fork-mode handle SIGUSR1 nostop noprint pass Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: handle SIGUSR1 nostop noprint pass delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x80000aa6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c, line 43. (gdb) kill The program is not being run. (gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2348 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-st created; pid = 16855 Listening on port 2348 target remote localhost:2348 Remote debugging using localhost:2348 Reading /lib/ld64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld64.so.1 from remote target... Reading symbols from target:/lib/ld64.so.1...Reading /lib/ld-2.19.so from remote target... Reading /lib/.debug/ld-2.19.so from remote target... (no debugging symbols found)...done. 0x000003fffdfd9280 in ?? () from target:/lib/ld64.so.1 (gdb) continue Continuing. Reading /lib/s390x-linux-gnu/libm.so.6 from remote target... Reading /lib/s390x-linux-gnu/libc.so.6 from remote target... Reading /lib/s390x-linux-gnu/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/libc-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libc-2.19.so from remote target... Breakpoint 1, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c:43 43 setbuf (stdout, NULL); (gdb) watch var Hardware watchpoint 2: var (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: set the watchpoint hbreak marker Hardware assisted breakpoint 3 at 0x80000a72: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c, line 33. (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: hbreak marker break mark_exit Breakpoint 4 at 0x80000a8a: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-st.c, line 38. (gdb) continue Continuing. Warning: Cannot insert hardware breakpoint 3. Could not insert hardware watchpoint 2. Could not insert hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints. Command aborted. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: hardware breakpoints work continue Continuing. FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoints work (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: finish (timeout) Executing on host: gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-child.c -DFOLLOW_CHILD -DTHREAD -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt (timeout = 300) spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-child.c -DFOLLOW_CHILD -DTHREAD -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status compiler exited with status 1 output is: /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status Executing on host: gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-child.c -DFOLLOW_CHILD -DTHREAD -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt (timeout = 300) spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-child.c -DFOLLOW_CHILD -DTHREAD -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt PASS: gdb.threads/watchpoint-fork.exp: child: multithreaded: successfully compiled posix threads test case Remote debugging from host 127.0.0.1 monitor exit spawn /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory -ex set auto-connect-native-target off GNU gdb (GDB) 8.0.50.20171215-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "s390x-ibm-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt...done. (gdb) set follow-fork-mode child (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: multithreaded: set follow-fork-mode child handle SIGUSR1 nostop noprint pass Signal Stop Print Pass to program Description SIGUSR1 No No Yes User defined signal 1 (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: multithreaded: handle SIGUSR1 nostop noprint pass delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x80000ebe: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 117. (gdb) kill The program is not being run. (gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2349 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/watchpoint-fork/watchpoint-fork-child-mt created; pid = 16922 Listening on port 2349 target remote localhost:2349 Remote debugging using localhost:2349 Reading /lib/ld64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld64.so.1 from remote target... Reading symbols from target:/lib/ld64.so.1...Reading /lib/ld-2.19.so from remote target... Reading /lib/.debug/ld-2.19.so from remote target... (no debugging symbols found)...done. 0x000003fffdfd9280 in ?? () from target:/lib/ld64.so.1 (gdb) continue Continuing. Reading /lib/s390x-linux-gnu/libpthread.so.0 from remote target... Reading /lib/s390x-linux-gnu/libm.so.6 from remote target... Reading /lib/s390x-linux-gnu/libc.so.6 from remote target... Reading /lib/s390x-linux-gnu/libpthread-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libpthread-2.19.so from remote target... Reading /lib/s390x-linux-gnu/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libm-2.19.so from remote target... Reading /lib/s390x-linux-gnu/libc-2.19.so from remote target... Reading /lib/s390x-linux-gnu/.debug/libc-2.19.so from remote target... Breakpoint 1, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c:117 117 setbuf (stdout, NULL); (gdb) watch var Hardware watchpoint 2: var (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: multithreaded: set the watchpoint hbreak marker Hardware assisted breakpoint 3 at 0x80000c6a: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 42. (gdb) PASS: gdb.threads/watchpoint-fork.exp: child: multithreaded: hbreak marker break mark_exit Breakpoint 4 at 0x80000c9a: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c, line 52. (gdb) continue Continuing. Warning: Cannot insert hardware breakpoint 3. Could not insert hardware watchpoint 2. Could not insert hardware breakpoints: You may have requested too many hardware breakpoints/watchpoints. Command aborted. (gdb) FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: hardware breakpoints work continue Continuing. FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: singlethread watchpoints work (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: multithreaded watchpoints work at A (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: multithreaded watchpoints work at B (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: breakpoint (A) after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: watchpoint A after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: watchpoint B after the first fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: breakpoint (A) after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: watchpoint A after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: watchpoint B after the second fork (timeout) continue FAIL: gdb.threads/watchpoint-fork.exp: child: multithreaded: finish (timeout) Remote debugging from host 127.0.0.1 monitor exit testcase /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/watchpoint-fork.exp completed in 361 seconds === gdb Summary === # of expected passes 22 # of unexpected failures 36 Executing on host: /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory --version (timeout = 300) spawn -ignore SIGHUP /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory --version GNU gdb (GDB) 8.0.50.20171215-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "s390x-ibm-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". /home/dje/build/GDB/gdb/testsuite/../../gdb/gdb version 8.0.50.20171215-git -nw -nx -data-directory /home/dje/build/GDB/gdb/testsuite/../data-directory -ex "set auto-connect-native-target off" runtest completed at Fri Dec 15 17:53:30 2017