[gdb/testsuite] Fix gdb.debuginfod/fetch_src_and_symbols.exp with native-gdbserver
commit343c2cbd8577101a8057d1459810ff983d07943c
authorTom de Vries <tdevries@suse.de>
Tue, 11 Oct 2022 16:11:52 +0000 (11 18:11 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 11 Oct 2022 16:11:52 +0000 (11 18:11 +0200)
treeaf9a1a02865ae5830824bdce73dad97d0489c837
parent12509439a1844a1f1095ac4e9d70b59b539e952c
[gdb/testsuite] Fix gdb.debuginfod/fetch_src_and_symbols.exp with native-gdbserver

When running test-case gdb.debuginfod/fetch_src_and_symbols.exp with target
board native-gdbserver, I get:
...
Running gdb.debuginfod/fetch_src_and_symbols.exp ...
ERROR: tcl error sourcing gdb.debuginfod/fetch_src_and_symbols.exp.
ERROR: gdbserver does not support start without extended-remote
    while executing
"error "gdbserver does not support $command without extended-remote""
    (procedure "gdb_test_multiple" line 51)
    invoked from within
"gdb_test_multiple $command $message {*}$opts $user_code"
    (procedure "gdb_test" line 56)
    invoked from within
"gdb_test "start" "Temporary breakpoint.*""
...

Fix this by replacing gdb_test "start" with runto_main.

Tested on x86_64-linux.
gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp