Re: [BuildBot] Notifications disabled for Debian-s390x-* and Fedora-ppc64*-* builders

David Edelsohn
2017-12-15T23:20:29Z

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

On Fri, Dec 15, 2017 at 2:19 PM, Pedro Alves <palves@redhat.com> wrote:
> On 12/15/2017 06:55 PM, David Edelsohn wrote:
>
>> Older DejaGNU does not seem to have an effect. All of the processes
>> are stuck in "gdb.threads/process-dies-while-handling-bp"
>>
>
> Strange, I'm not seeing any potential infinite loop in the
> testcase, so I'd expect that it least it should timeout properly.
> Can you run the testcase alone, with
>
> make check TESTS="gdb.threads/process-dies-while-handling-bp"
>
> and send the resulting gdb.sum/gdb.log.

Reverting to an earlier revision of the DejaGNU Framework did not help.

I also updated all of the packages installed on the Debian system,
including the kernel, but the problem still remains. make check is
reporting a large number of timeouts in gdb.base and gdb.thread. At
300s per timeout, it adds up -- eventually to 9 hours. Some of the
log files are attached.

[-- Attachment #2: display.log --]
[-- Type: application/octet-stream, Size: 7082 bytes --]

Test Run By dje on Fri Dec 15 17:43:52 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.base/display.exp ...
get_compiler_info: gcc-4-9-2
Executing on host: gcc -w -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/display.c (timeout = 300)
spawn -ignore SIGHUP gcc -w -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/display.c
Executing on host: gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display0.o -w -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display (timeout = 300)
spawn -ignore SIGHUP gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display0.o -w -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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.base
Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800007a6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/display.c, line 55.
(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.base/display/display
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/display/display created; pid = 17018
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.base/display.c:55
55 do_loops();
(gdb) break 19
Breakpoint 2 at 0x80000602: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/display.c, line 19.
(gdb) PASS: gdb.base/display.exp: break do_loops
cont
Continuing.

Breakpoint 2, do_loops () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/display.c:19
19 for( i = 0; i < LOOP; i++ ) { /* set breakpoint 1 here */
(gdb) PASS: gdb.base/display.exp: get to do_loops
watch sum
Hardware watchpoint 3: sum
(gdb) PASS: gdb.base/display.exp: set watch
break 26
Breakpoint 4 at 0x800006a8: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/display.c, line 26.
(gdb) PASS: gdb.base/display.exp: break loop end
info disp
There are no auto-display expressions now.
(gdb) PASS: gdb.base/display.exp: inf disp
disp i
1: i = 0
(gdb) PASS: gdb.base/display.exp: display i
disp/x j
2: /x j = 0x0
(gdb) PASS: gdb.base/display.exp: display j
disp/i &k
3: x/i &k
0x3ffffffdde8: .long 0x00000000
(gdb) PASS: gdb.base/display.exp: display &k
disp/f f
4: /f f = 3.1415
(gdb) PASS: gdb.base/display.exp: display/f f
disp/s &sum
5: x/s &sum 0x80001c5c <sum>: ""
(gdb) PASS: gdb.base/display.exp: display/s &sum
cont
Continuing.
Warning:
Could not insert hardware watchpoint 3.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.base/display.exp: first disp
cont
Continuing.
FAIL: gdb.base/display.exp: second disp (timeout)
enab disp 6
FAIL: gdb.base/display.exp: catch err (timeout)
disab disp 1
FAIL: gdb.base/display.exp: disab disp 1 (timeout)
disab disp 2
FAIL: gdb.base/display.exp: disab disp 2 (timeout)
enab disp 1
FAIL: gdb.base/display.exp: re-enab (timeout)
enab disp 1
FAIL: gdb.base/display.exp: re-enab of enab (timeout)
undisp 5
FAIL: gdb.base/display.exp: undisp (timeout)
info disp
FAIL: gdb.base/display.exp: info disp (timeout)
cont
FAIL: gdb.base/display.exp: next hit (timeout)
undisp
FAIL: gdb.base/display.exp: undisp all (timeout)
disp *p_i
FAIL: gdb.base/display.exp: disp *p_i (timeout)
p p_i = 0x0
FAIL: gdb.base/display.exp: p p_i = 0x0 (timeout)
display
FAIL: gdb.base/display.exp: display bad address (timeout)
p p_i = &i
FAIL: gdb.base/display.exp: p p_i = &i (timeout)
display
FAIL: gdb.base/display.exp: display good address (timeout)
undisp
FAIL: gdb.base/display.exp: undisp all again (timeout)
disab 3
FAIL: gdb.base/display.exp: disab 3 (timeout)
cont
FAIL: gdb.base/display.exp: watch off (timeout)
finish
FAIL: gdb.base/display.exp: finish (timeout)
step
FAIL: gdb.base/display.exp: step (timeout)
tbreak 42

[-- Attachment #3: step-over-trips-on-watchpoint.log --]
[-- Type: application/octet-stream, Size: 125006 bytes --]

Test Run By dje on Fri Dec 15 17:47:31 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/step-over-trips-on-watchpoint.exp ...
Executing on host: gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c -I/home/dje/build/GDB/gdb/testsuite -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint (timeout = 300)
spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c -I/home/dje/build/GDB/gdb/testsuite -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
/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/step-over-trips-on-watchpoint.c -I/home/dje/build/GDB/gdb/testsuite -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint (timeout = 300)
spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c -I/home/dje/build/GDB/gdb/testsuite -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
PASS: gdb.threads/step-over-trips-on-watchpoint.exp: successfully compiled posix threads test case
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 10058
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/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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: set displaced-stepping off
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 10058.10139]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 10058.10058 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 10058.10139 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 10058.10139)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: set breakpoint at address that triggers watch
continue
Continuing.
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: continue to breakpoint: run to instruction that triggers watch in thread 2 (timeout)
p counter = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: unbreak loop in thread 2 (timeout)
p watch_me = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: clear watch_me (timeout)
watch watch_me
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: watch watch_me (timeout)
thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: thread 1 (timeout)
set scheduler-locking off
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: set scheduler-locking off (timeout)
step
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: step: step (timeout)
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 11163
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: set displaced-stepping off
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 11163.11182]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 11163.11163 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 11163.11182 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 11163.11182)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: set breakpoint at address that triggers watch
continue
Continuing.
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: continue to breakpoint: run to instruction that triggers watch in thread 2 (timeout)
p counter = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: unbreak loop in thread 2 (timeout)
p watch_me = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: clear watch_me (timeout)
watch watch_me
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: watch watch_me (timeout)
thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: thread 1 (timeout)
set scheduler-locking off
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: set scheduler-locking off (timeout)
next
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: next: next (timeout)
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 16816
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/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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: set displaced-stepping off
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 16816.16818]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 16816.16816 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 16816.16818 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 16816.16818)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: set breakpoint at address that triggers watch
continue
Continuing.
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: continue to breakpoint: run to instruction that triggers watch in thread 2 (timeout)
p counter = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: unbreak loop in thread 2 (timeout)
p watch_me = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: clear watch_me (timeout)
watch watch_me
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: watch watch_me (timeout)
thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: thread 1 (timeout)
set scheduler-locking off
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: set scheduler-locking off (timeout)
continue
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: no thread-specific bp: continue: continue (timeout)
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 16893
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: set displaced-stepping off
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 16893.16894]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 16893.16893 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 16893.16894 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 16893.16894)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: set breakpoint at address that triggers watch
continue
Continuing.
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: continue to breakpoint: run to instruction that triggers watch in thread 2 (timeout)
p counter = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: unbreak loop in thread 2 (timeout)
p watch_me = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: clear watch_me (timeout)
watch watch_me
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: watch watch_me (timeout)
b *0x0000000080000866 thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: set breakpoint specific to thread 1 (timeout)
thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: thread 1 (timeout)
set scheduler-locking off
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: set scheduler-locking off (timeout)
step
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: step: step (timeout)
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2350 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 16945
Listening on port 2350
target remote localhost:2350
Remote debugging using localhost:2350
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: set displaced-stepping off
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 16945.16946]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 16945.16945 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 16945.16946 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 16945.16946)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: set breakpoint at address that triggers watch
continue
Continuing.
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: continue to breakpoint: run to instruction that triggers watch in thread 2 (timeout)
p counter = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: unbreak loop in thread 2 (timeout)
p watch_me = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: clear watch_me (timeout)
watch watch_me
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: watch watch_me (timeout)
b *0x0000000080000866 thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: set breakpoint specific to thread 1 (timeout)
thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: thread 1 (timeout)
set scheduler-locking off
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: set scheduler-locking off (timeout)
next
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: next: next (timeout)
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2351 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 16976
Listening on port 2351
target remote localhost:2351
Remote debugging using localhost:2351
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: set displaced-stepping off
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 16976.16977]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 16976.16976 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 16976.16977 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 16976.16977)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: set breakpoint at address that triggers watch
continue
Continuing.
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: continue to breakpoint: run to instruction that triggers watch in thread 2 (timeout)
p counter = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: unbreak loop in thread 2 (timeout)
p watch_me = 0
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: clear watch_me (timeout)
watch watch_me
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: watch watch_me (timeout)
b *0x0000000080000866 thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: set breakpoint specific to thread 1 (timeout)
thread 1
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: thread 1 (timeout)
set scheduler-locking off
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: set scheduler-locking off (timeout)
continue
FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=off: with thread-specific bp: continue: continue (timeout)
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2352 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 16995
Listening on port 2352
target remote localhost:2352
Remote debugging using localhost:2352
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: set displaced-stepping on
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 16995.16996]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 16995.16995 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 16995.16996 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 16995.16996)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: set breakpoint at address that triggers watch
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 5, 0x0000000080000862 in child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:36
36 counter++;
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: continue to breakpoint: run to instruction that triggers watch in thread 2
p counter = 0
$2 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: unbreak loop in thread 2
p watch_me = 0
$3 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: clear watch_me
watch watch_me
Hardware watchpoint 6: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: watch watch_me
thread 1
[Switching to thread 1 (Thread 16995.16995)]
#0 main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: thread 1
set scheduler-locking off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: set scheduler-locking off
step
Warning:
Could not insert hardware watchpoint 6.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: step: step
Remote debugging from host 127.0.0.1
monitor exit
Killing process(es): 16995
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2353 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 17015
Listening on port 2353
target remote localhost:2353
Remote debugging using localhost:2353
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: set displaced-stepping on
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 17015.17016]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 17015.17015 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 17015.17016 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 17015.17016)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: set breakpoint at address that triggers watch
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 5, 0x0000000080000862 in child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:36
36 counter++;
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: continue to breakpoint: run to instruction that triggers watch in thread 2
p counter = 0
$2 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: unbreak loop in thread 2
p watch_me = 0
$3 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: clear watch_me
watch watch_me
Hardware watchpoint 6: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: watch watch_me
thread 1
[Switching to thread 1 (Thread 17015.17015)]
#0 main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: thread 1
set scheduler-locking off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: set scheduler-locking off
next
Warning:
Could not insert hardware watchpoint 6.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: next: next
Remote debugging from host 127.0.0.1
monitor exit
Killing process(es): 17015
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2354 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 17034
Listening on port 2354
target remote localhost:2354
Remote debugging using localhost:2354
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: set displaced-stepping on
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 17034.17035]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 17034.17034 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 17034.17035 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 17034.17035)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: set breakpoint at address that triggers watch
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 5, 0x0000000080000862 in child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:36
36 counter++;
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: continue to breakpoint: run to instruction that triggers watch in thread 2
p counter = 0
$2 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: unbreak loop in thread 2
p watch_me = 0
$3 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: clear watch_me
watch watch_me
Hardware watchpoint 6: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: watch watch_me
thread 1
[Switching to thread 1 (Thread 17034.17034)]
#0 main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: thread 1
set scheduler-locking off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: set scheduler-locking off
continue
Continuing.
Warning:
Could not insert hardware watchpoint 6.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: no thread-specific bp: continue: continue
Remote debugging from host 127.0.0.1
Killing process(es): 17034
monitor exit
(gdb) 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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2355 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 17052
Listening on port 2355
target remote localhost:2355
Remote debugging using localhost:2355
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: set displaced-stepping on
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 17052.17053]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 17052.17052 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 17052.17053 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 17052.17053)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: set breakpoint at address that triggers watch
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 5, 0x0000000080000862 in child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:36
36 counter++;
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: continue to breakpoint: run to instruction that triggers watch in thread 2
p counter = 0
$2 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: unbreak loop in thread 2
p watch_me = 0
$3 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: clear watch_me
watch watch_me
Hardware watchpoint 6: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: watch watch_me
b *0x0000000080000866 thread 1
Breakpoint 7 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: set breakpoint specific to thread 1
thread 1
[Switching to thread 1 (Thread 17052.17052)]
#0 main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: thread 1
set scheduler-locking off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: set scheduler-locking off
step
Warning:
Could not insert hardware watchpoint 6.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: step: step
Remote debugging from host 127.0.0.1
monitor exit
Killing process(es): 17052
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2356 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 17070
Listening on port 2356
target remote localhost:2356
Remote debugging using localhost:2356
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: set displaced-stepping on
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 17070.17071]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 17070.17070 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 17070.17071 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 17070.17071)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: set breakpoint at address that triggers watch
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 5, 0x0000000080000862 in child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:36
36 counter++;
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: continue to breakpoint: run to instruction that triggers watch in thread 2
p counter = 0
$2 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: unbreak loop in thread 2
p watch_me = 0
$3 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: clear watch_me
watch watch_me
Hardware watchpoint 6: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: watch watch_me
b *0x0000000080000866 thread 1
Breakpoint 7 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: set breakpoint specific to thread 1
thread 1
[Switching to thread 1 (Thread 17070.17070)]
#0 main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: thread 1
set scheduler-locking off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: set scheduler-locking off
next
Warning:
Could not insert hardware watchpoint 6.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: next: next
Remote debugging from host 127.0.0.1
monitor exit
(gdb) Killing process(es): 17070
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800008b6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 52.
(gdb) kill
The program is not being run.
(gdb) spawn /home/dje/build/GDB/gdb/testsuite/../gdbserver/gdbserver --once :2357 /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/step-over-trips-on-watchpoint/step-over-trips-on-watchpoint created; pid = 17088
Listening on port 2357
target remote localhost:2357
Remote debugging using localhost:2357
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/step-over-trips-on-watchpoint.c:52
52 alarm (300);
(gdb) set displaced-stepping on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: set displaced-stepping on
break 65
Breakpoint 2 at 0x80000902: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 65.
(gdb) continue
Continuing.
[New Thread 17088.17089]

Thread 1 "step-over-trips" hit Breakpoint 2, main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: continue to breakpoint: run to wait-thread breakpoint
info threads
Id Target Id Frame
* 1 Thread 17088.17088 "step-over-trips" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
2 Thread 17088.17089 "step-over-trips" 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: info threads shows all threads
set scheduler-locking on
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: set scheduler-locking on
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break 38
Breakpoint 3 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) thread 2
[Switching to thread 2 (Thread 17088.17089)]
#0 0x000003fffde21c30 in ?? () at ../sysdeps/unix/syscall-template.S:81 from target:/lib/s390x-linux-gnu/libc.so.6
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: thread 2
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 3, child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:38
38 watch_me = 1; /* set breakpoint child here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: continue to breakpoint: run to breakpoint in thread 2
p watch_me = 0
$1 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: find addresses: clear watch_me
watch watch_me
Hardware watchpoint 4: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: find addresses: watch watch_me
continue
Continuing.
Warning:
Could not insert hardware watchpoint 4.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: find addresses: continue to watchpoint
disassemble
Dump of assembler code for function child_function:
0x0000000080000828 <+0>: stmg %r11,%r15,88(%r15)
0x000000008000082e <+6>: aghi %r15,-168
0x0000000080000832 <+10>: lgr %r11,%r15
0x0000000080000836 <+14>: stg %r2,160(%r11)
0x000000008000083c <+20>: larl %r2,0x80001d40 <barrier>
0x0000000080000842 <+26>: brasl %r14,0x80000620 <pthread_barrier_wait@plt>
0x0000000080000848 <+32>: j 0x8000088c <child_function+100>
0x000000008000084c <+36>: larl %r1,0x80001d30 <counter>
0x0000000080000852 <+42>: l %r1,0(%r1)
0x0000000080000856 <+46>: ahi %r1,1
0x000000008000085a <+50>: lr %r2,%r1
0x000000008000085c <+52>: larl %r1,0x80001d30 <counter>
0x0000000080000862 <+58>: st %r2,0(%r1)
=> 0x0000000080000866 <+62>: larl %r1,0x80001d6c <watch_me>
0x000000008000086c <+68>: lhi %r2,1
0x0000000080000870 <+72>: st %r2,0(%r1)
0x0000000080000874 <+76>: larl %r1,0x80001d68 <other>
0x000000008000087a <+82>: lhi %r2,1
0x000000008000087e <+86>: st %r2,0(%r1)
0x0000000080000882 <+90>: lghi %r2,1
0x0000000080000886 <+94>: brasl %r14,0x80000660 <usleep@plt>
0x000000008000088c <+100>: larl %r1,0x80001d30 <counter>
0x0000000080000892 <+106>: l %r1,0(%r1)
0x0000000080000896 <+110>: ltr %r1,%r1
0x0000000080000898 <+112>: jne 0x8000084c <child_function+36>
0x000000008000089c <+116>: lghi %r2,0
0x00000000800008a0 <+120>: brasl %r14,0x800006c0 <pthread_exit@plt>
End of assembler dump.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: find addresses: find addresses
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break *0x0000000080000862
Breakpoint 5 at 0x80000862: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 36.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: set breakpoint at address that triggers watch
continue
Continuing.

Thread 2 "step-over-trips" hit Breakpoint 5, 0x0000000080000862 in child_function (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:36
36 counter++;
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: continue to breakpoint: run to instruction that triggers watch in thread 2
p counter = 0
$2 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: unbreak loop in thread 2
p watch_me = 0
$3 = 0
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: clear watch_me
watch watch_me
Hardware watchpoint 6: watch_me
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: watch watch_me
b *0x0000000080000866 thread 1
Breakpoint 7 at 0x80000866: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c, line 38.
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: set breakpoint specific to thread 1
thread 1
[Switching to thread 1 (Thread 17088.17088)]
#0 main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.c:65
65 while (1); /* set wait-thread breakpoint here */
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: thread 1
set scheduler-locking off
(gdb) PASS: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: set scheduler-locking off
continue
Continuing.
Warning:
Could not insert hardware watchpoint 6.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.threads/step-over-trips-on-watchpoint.exp: displaced=on: with thread-specific bp: continue: continue
Remote debugging from host 127.0.0.1
monitor exit
Killing process(es): 17088
testcase /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp completed in 513 seconds

=== gdb Summary ===

# of expected passes 160
# of unexpected failures 63
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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:56:05 2017

[-- Attachment #4: thread-specific-bp.log --]
[-- Type: application/octet-stream, Size: 16974 bytes --]

Test Run By dje on Fri Dec 15 17:47:20 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/thread-specific-bp.exp ...
Executing on host: gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp (timeout = 300)
spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c -g -lpthreads -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp
/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/thread-specific-bp.c -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp (timeout = 300)
spawn -ignore SIGHUP gcc /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c -g -lpthread -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp
PASS: gdb.threads/thread-specific-bp.exp: successfully compiled posix threads test case
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/thread-specific-bp/thread-specific-bp
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800006e6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 36.
(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/thread-specific-bp/thread-specific-bp
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp created; pid = 7962
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/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/thread-specific-bp.c:36
36 pthread_create (&thread, NULL, start, NULL);
(gdb) info threads
Id Target Id Frame
* 1 Thread 7962.7962 "thread-specific" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: get main thread id
break start
Breakpoint 2 at 0x800006ac: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 23.
(gdb) continue
Continuing.
[New Thread 7962.7981]
[Switching to Thread 7962.7981]

Thread 2 "thread-specific" hit Breakpoint 2, start (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
23 return NULL;
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: continue to breakpoint: start
info threads
Id Target Id Frame
1 Thread 7962.7962 "thread-specific" 0x000003fffdfafc42 in pthread_join (threadid=4398010173712, thread_return=0x0) at pthread_join.c:92
* 2 Thread 7962.7981 "thread-specific" start (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: get start thread id
break main thread 2
Note: breakpoint 1 (all threads) also set at pc 0x800006e6.
Breakpoint 3 at 0x800006e6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 36.
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000800006e6 in main at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36
breakpoint already hit 1 time
2 breakpoint keep y 0x00000000800006ac in start at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
breakpoint already hit 1 time
3 breakpoint keep y 0x00000000800006e6 in main at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36 thread 2
stop only in thread 2
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: breakpoint set
break end
Breakpoint 4 at 0x800006ca: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 29.
(gdb) thread 1
[Switching to thread 1 (Thread 7962.7962)]
#0 0x000003fffdfafc42 in pthread_join (threadid=4398010173712, thread_return=0x0) at pthread_join.c:92
92 pthread_join.c: No such file or directory.
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: thread 1 selected
continue
Continuing.
Thread-specific breakpoint 3 deleted - thread 2 no longer in the thread list.

Thread 1 "thread-specific" hit Breakpoint 4, end () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:29
29 }
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: continue to end
info breakpoint
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000800006e6 in main at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36
breakpoint already hit 1 time
2 breakpoint keep y 0x00000000800006ac in start at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
breakpoint already hit 1 time
4 breakpoint keep y 0x00000000800006ca in end at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:29
breakpoint already hit 1 time
(gdb) PASS: gdb.threads/thread-specific-bp.exp: all-stop: thread-specific breakpoint was deleted
Remote debugging from host 127.0.0.1
monitor exit
Killing process(es): 7962
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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/thread-specific-bp/thread-specific-bp
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp...done.
(gdb) set non-stop on
(gdb) PASS: gdb.threads/thread-specific-bp.exp: set non-stop mode
delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800006e6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 36.
(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/thread-specific-bp/thread-specific-bp
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.threads/thread-specific-bp/thread-specific-bp created; pid = 7997
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.

Program stopped.
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/thread-specific-bp.c:36
36 pthread_create (&thread, NULL, start, NULL);
(gdb) info threads
Id Target Id Frame
* 1 Thread 7997.7997 "thread-specific" main () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: get main thread id
break start
Breakpoint 2 at 0x800006ac: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 23.
(gdb) continue
Continuing.
[New Thread 7997.8014]

Thread 2 "thread-specific" hit Breakpoint 2, start (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
23 return NULL;
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: continue to breakpoint: start
info threads
Id Target Id Frame
* 1 Thread 7997.7997 "thread-specific" (running)
2 Thread 7997.8014 "thread-specific" start (arg=0x0) at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: get start thread id
break main thread 2
Note: breakpoint 1 (all threads) also set at pc 0x800006e6.
Breakpoint 3 at 0x800006e6: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 36.
(gdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000800006e6 in main at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36
breakpoint already hit 1 time
2 breakpoint keep y 0x00000000800006ac in start at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
breakpoint already hit 1 time
3 breakpoint keep y 0x00000000800006e6 in main at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36 thread 2
stop only in thread 2
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: breakpoint set
break end
Breakpoint 4 at 0x800006ca: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c, line 29.
(gdb) thread 1
[Switching to thread 1 (Thread 7997.7997)](running)
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: thread 1 selected
continue -a
Continuing.
Thread-specific breakpoint 3 deleted - thread 2 no longer in the thread list.

Thread 1 "thread-specific" hit Breakpoint 4, end () at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:29
29 }
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: continue to end
info breakpoint
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000800006e6 in main at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:36
breakpoint already hit 1 time
2 breakpoint keep y 0x00000000800006ac in start at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:23
breakpoint already hit 1 time
4 breakpoint keep y 0x00000000800006ca in end at /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.c:29
breakpoint already hit 1 time
(gdb) PASS: gdb.threads/thread-specific-bp.exp: non-stop: thread-specific breakpoint was deleted
Remote debugging from host 127.0.0.1
monitor exit
Killing process(es): 7997
testcase /home/dje/src/binutils-gdb/gdb/testsuite/gdb.threads/thread-specific-bp.exp completed in 1 seconds

=== gdb Summary ===

# of expected passes 16
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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:47:22 2017

[-- Attachment #5: watchpoint-fork.log --]
[-- Type: application/octet-stream, Size: 31141 bytes --]

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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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

[-- Attachment #6: watchpoints.log --]
[-- Type: application/octet-stream, Size: 7105 bytes --]

Test Run By dje on Fri Dec 15 17:43:42 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.base/watchpoints.exp ...
get_compiler_info: gcc-4-9-2
Executing on host: gcc -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/watchpoints.c (timeout = 300)
spawn -ignore SIGHUP gcc -c -g -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints0.o /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/watchpoints.c
Executing on host: gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints0.o -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints (timeout = 300)
spawn -ignore SIGHUP gcc /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints0.o -g -lm -o /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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.base
Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints...done.
(gdb) set can-use-hw-watchpoints 0
(gdb) watch ival1
Watchpoint 1: ival1
(gdb) PASS: gdb.base/watchpoints.exp: before inferior start: create watchpoint
awatch ival1
Can't set read/access watchpoint when hardware watchpoints are disabled.
(gdb) PASS: gdb.base/watchpoints.exp: before inferior start: create access watchpoint
rwatch ival1
Can't set read/access watchpoint when hardware watchpoints are disabled.
(gdb) PASS: gdb.base/watchpoints.exp: before inferior start: create read watchpoint
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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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.base
Source directories searched: /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints
Reading symbols from /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x800005aa: file /home/dje/src/binutils-gdb/gdb/testsuite/gdb.base/watchpoints.c, line 33.
(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.base/watchpoints/watchpoints
Process /home/dje/build/GDB/gdb/testsuite/outputs/gdb.base/watchpoints/watchpoints created; pid = 14063
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.base/watchpoints.c:33
33 for (count = 0; count < 4; count++) {
(gdb) watch ival1
Hardware watchpoint 2: ival1
(gdb) watch ival3
Hardware watchpoint 3: ival3
(gdb) cont
Continuing.
Warning:
Could not insert hardware watchpoint 2.
Could not insert hardware watchpoint 3.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

Command aborted.
(gdb) FAIL: gdb.base/watchpoints.exp: watchpoint hit, first time
cont
Continuing.
FAIL: gdb.base/watchpoints.exp: watchpoint hit, first time (timeout)
info break
FAIL: gdb.base/watchpoints.exp: watchpoint hit count is 1 (timeout)
cont