Test run by tcwg-build on Fri Mar 20 15:03:20 2026
Native configuration is armv8l-unknown-linux-gnueabihf

		=== gdb tests ===

Schedule of variations:
    tcwg-local

Running target tcwg-local
Using /home/tcwg-build/workspace/tcwg_gnu_1/abe/config/boards/tcwg-local.exp as board description file for target.
Using /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/hosttools/armv8l-unknown-linux-gnueabihf/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/hosttools/armv8l-unknown-linux-gnueabihf/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.exp ...
Executing on build: rm -rf /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num    (timeout = 300)
builtin_spawn -ignore SIGHUP rm -rf /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num
gdb_do_cache: universal_compile_options_c (  )
Executing on host: gcc    -fdiagnostics-color=never -c -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/temp/613345/ccopts.o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/temp/613345/ccopts.c    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fdiagnostics-color=never -c -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/temp/613345/ccopts.o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/temp/613345/ccopts.c
gdb_do_cache: get_compiler_info_1 ( c )
get_compiler_info: gcc-13-3-0
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
Executing on host: gcc  -fno-stack-protector  -fdiagnostics-color=never -c -g  -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num0.o /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -g -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num0.o /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c
gdb_do_cache: universal_compile_options_c (  )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
Executing on host: gcc  -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num0.o  -fdiagnostics-color=never -g  -lpthreads -lm   -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num0.o -fdiagnostics-color=never -g -lpthreads -lm -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num
/usr/bin/ld: cannot find -lpthreads: No such file or directory
collect2: error: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/bin/ld: cannot find -lpthreads: No such file or directory
collect2: error: ld returned 1 exit status

gdb_do_cache: universal_compile_options_c (  )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
Executing on host: gcc  -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num0.o  -fdiagnostics-color=never -g  -lpthread -lm   -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num0.o -fdiagnostics-color=never -g -lpthread -lm -o /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num
PASS: gdb.base/watch_thread_num.exp: successfully compiled posix threads test case

Starting logfile: /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/gdb.in.1

builtin_spawn /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/data-directory -iex set interactive-mode on
(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/tcwg-build/workspace/tcwg_gnu_1/gdb/gdb/testsuite/gdb.base
Source directories searched: /home/tcwg-build/workspace/tcwg_gnu_1/gdb/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num
Reading symbols from /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num...
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints, watchpoints, tracepoints, or catchpoints.
(gdb) break -qualified main
Breakpoint 1 at 0x66e: file /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c, line 46.
(gdb) run 
Starting program: /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.base/watch_thread_num/watch_thread_num 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Breakpoint 1, main () at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:46
46	    alarm (180);
(gdb) watch shared_var thread 0
Invalid thread ID: 0
(gdb) PASS: gdb.base/watch_thread_num.exp: watchpoint on invalid thread
watch shared_var thread
A syntax error in expression, near `thread'.
(gdb) PASS: gdb.base/watch_thread_num.exp: invalid watch syntax
break 62
Breakpoint 2 at 0x4006c2: file /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c, line 62.
(gdb) continue
Continuing.
[New Thread 0xf7eac420 (LWP 613436) (id 2)]
[New Thread 0xf76ab420 (LWP 613437) (id 3)]
[New Thread 0xf6eaa420 (LWP 613438) (id 4)]
[New Thread 0xf66a9420 (LWP 613439) (id 5)]
[New Thread 0xf5ea8420 (LWP 613440) (id 6)]
[New Thread 0xf56a7420 (LWP 613441) (id 7)]
[New Thread 0xf4ea6420 (LWP 613442) (id 8)]
[New Thread 0xf46a5420 (LWP 613443) (id 9)]
[New Thread 0xf3ea4420 (LWP 613444) (id 10)]
[New Thread 0xf36a3420 (LWP 613445) (id 11)]
[New Thread 0xf2ea2420 (LWP 613446) (id 12)]
[New Thread 0xf26a1420 (LWP 613447) (id 13)]
[New Thread 0xf1ea0420 (LWP 613448) (id 14)]
[New Thread 0xf169f420 (LWP 613449) (id 15)]
[New Thread 0xf0e9e420 (LWP 613450) (id 16)]

Thread 1 "watch_thread_nu" hit Breakpoint 2, main () at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:62
62	    pthread_barrier_wait (&threads_started_barrier2);  /* all threads started */
(gdb) PASS: gdb.base/watch_thread_num.exp: continue to breakpoint: all threads started
break loop
Breakpoint 3 at 0x4006f8: file /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c, line 77.
(gdb) PASS: gdb.base/watch_thread_num.exp: Set breakpoint at loop
continue
Continuing.
[Switching to Thread 0xf0e9e420 (LWP 613450)]

Thread 16 "watch_thread_nu" hit Breakpoint 3, loop () at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:77
77	}
(gdb) PASS: gdb.base/watch_thread_num.exp: stopped in loop
thread
[Current thread is 16 (Thread 0xf0e9e420 (LWP 613450))]
(gdb) PASS: gdb.base/watch_thread_num.exp: thread command
delete breakpoints
Delete all breakpoints, watchpoints, tracepoints, and catchpoints? (y or n) y
(gdb) info breakpoints
No breakpoints, watchpoints, tracepoints, or catchpoints.
(gdb) awatch shared_var thread 16
Hardware access (read/write) watchpoint 4: shared_var
(gdb) PASS: gdb.base/watch_thread_num.exp: watchpoint on shared variable
info breakpoint $bpnum
Num     Type           Disp Enb Address    What
4       acc watchpoint keep y              shared_var
	stop only in thread 16
(gdb) PASS: gdb.base/watch_thread_num.exp: info breakpoint shows watchpoint is thread-specific
continue
Continuing.
[Thread 0xf7eac420 (LWP 613436) (id 2) exited]

Thread 16 "watch_thread_nu" hit Hardware access (read/write) watchpoint 4: shared_var

Value = 102
0x0040073e in thread_function (arg=0xe) at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:87
87		while (shared_var > 0)
(gdb) PASS: gdb.base/watch_thread_num.exp: Watchpoint triggered iteration 1
thread
[Current thread is 16 (Thread 0xf0e9e420 (LWP 613450))]
(gdb) PASS: gdb.base/watch_thread_num.exp: Check thread that triggered iteration 1
continue
Continuing.

Thread 16 "watch_thread_nu" hit Hardware access (read/write) watchpoint 4: shared_var

Value = 104
0x00400726 in thread_function (arg=0xe) at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:89
89		    shared_var++;
(gdb) PASS: gdb.base/watch_thread_num.exp: Watchpoint triggered iteration 2
thread
[Current thread is 16 (Thread 0xf0e9e420 (LWP 613450))]
(gdb) PASS: gdb.base/watch_thread_num.exp: Check thread that triggered iteration 2
continue
Continuing.

Thread 16 "watch_thread_nu" hit Hardware access (read/write) watchpoint 4: shared_var

Old value = 104
New value = 105
thread_function (arg=0xe) at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:90
90		    usleep (1); /* Loop increment.  */
(gdb) PASS: gdb.base/watch_thread_num.exp: Watchpoint triggered iteration 3
thread
[Current thread is 16 (Thread 0xf0e9e420 (LWP 613450))]
(gdb) PASS: gdb.base/watch_thread_num.exp: Check thread that triggered iteration 3
continue
Continuing.

Thread 16 "watch_thread_nu" hit Hardware access (read/write) watchpoint 4: shared_var

Value = 106
0x0040073e in thread_function (arg=0xe) at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:87
87		while (shared_var > 0)
(gdb) PASS: gdb.base/watch_thread_num.exp: Watchpoint triggered iteration 4
thread
[Current thread is 16 (Thread 0xf0e9e420 (LWP 613450))]
(gdb) PASS: gdb.base/watch_thread_num.exp: Check thread that triggered iteration 4
continue
Continuing.

Thread 16 "watch_thread_nu" hit Hardware access (read/write) watchpoint 4: shared_var

Value = 107
0x00400726 in thread_function (arg=0xe) at /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.c:89
89		    shared_var++;
(gdb) PASS: gdb.base/watch_thread_num.exp: Watchpoint triggered iteration 5
thread
[Current thread is 16 (Thread 0xf0e9e420 (LWP 613450))]
(gdb) PASS: gdb.base/watch_thread_num.exp: Check thread that triggered iteration 5
testcase /home/tcwg-build/workspace/tcwg_gnu_1/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.base/watch_thread_num.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		19
Executing on host: /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/data-directory -iex "set interactive-mode on" --version    (timeout = 300)
builtin_spawn -ignore SIGHUP /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/data-directory -iex set interactive-mode on --version
GNU gdb (Linaro_GDB-2026.03.20) 18.0.50.20260320-git
Copyright (C) 2026 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.
/home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/gdb version  18.0.50.20260320-git -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/tcwg-build/workspace/tcwg_gnu_1/abe/builds/armv8l-unknown-linux-gnueabihf/armv8l-unknown-linux-gnueabihf/gdb-gdb.git~master/gdb/data-directory -iex "set interactive-mode on" 

runtest completed at Fri Mar 20 15:03:21 2026
