binutils-gdb/gdb/testsuite/gdb.server
Tom de Vries 618e9847c5 [gdb/testsuite] Use -std=gnu99 for gdb.server/attach-flag.exp
When using a compiler defaulting to -std=gnu90, we run into:
...
Running gdb.server/attach-flag.exp ...
gdb compile failed, attach-flag.c: In function 'main':
attach-flag.c:22:3: error: 'for' loop initial declarations are only allowed \
  in C99 or C11 mode
   for (int i = 0; i < NTHREADS; i++)
   ^~~
attach-flag.c:22:3: note: use option -std=c99, -std=gnu99, -std=c11 or \
  -std=gnu11 to compile your code
...

Fix this by using -std=gnu99.

Tested on x86_64-linux.
2023-04-24 15:02:59 +02:00
..
abspath.exp
attach-flag.c
attach-flag.exp
bkpt-other-inferior.exp
connect-stopped-target.c
connect-stopped-target.exp
connect-with-no-symbol-file.c
connect-with-no-symbol-file.exp
connect-without-multi-process.c
connect-without-multi-process.exp
exit-multiple-threads.c
exit-multiple-threads.exp
ext-attach.c
ext-attach.exp
ext-restart.exp
ext-run.exp
ext-wrapper.exp
extended-remote-restart.c
extended-remote-restart.exp
file-transfer.exp
monitor-exit-quit.exp
multi-ui-errors.c
multi-ui-errors.exp
no-thread-db.c
no-thread-db.exp
non-existing-program.exp
normal.c
reconnect-ctrl-c.c
reconnect-ctrl-c.exp
run-without-local-binary.exp
server-connect.exp
server-exec-info.exp
server-kill-python.exp
server-kill.c
server-kill.exp
server-mon.exp
server-pipe.exp
server-run.exp
server.c
solib-list-lib.c
solib-list-main.c
solib-list.exp
stop-reply-no-thread-multi.c
stop-reply-no-thread-multi.exp
stop-reply-no-thread.c
stop-reply-no-thread.exp
sysroot.c
sysroot.exp
transfer.txt
twice-connect.c
twice-connect.exp
unittest.exp
wrapper.c
wrapper.exp