[gdb/testsuite] Fix untested in gdb.base/frame-view.exp

When running test-case gdb.base/frame-view.exp, I see:
...
gdb compile failed, ld: frame-view0.o: in function `main':
frame-view.c:73: undefined reference to `pthread_create'
ld: frame-view.c:76: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
UNTESTED: gdb.base/frame-view.exp: failed to prepare
...

Fix this by adding pthreads to the compilation flags.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries
2023-01-23 08:59:20 +01:00
parent 7e538762c2
commit bc0c6793fb

View File

@@ -18,7 +18,7 @@
standard_testfile
if { [build_executable "failed to prepare" \
${testfile} ${srcfile}] } {
${testfile} ${srcfile} {debug pthreads}] } {
return
}