[gdb/testsuite] Handle header files with local-remote-host.exp
authorTom de Vries <tdevries@suse.de>
Tue, 18 Oct 2022 13:32:47 +0000 (15:32 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 18 Oct 2022 13:32:47 +0000 (15:32 +0200)
commit0df940ee00806ce1e4d443eac27bddc2662d1897
tree4e0db475b2ef5c794baf16394f807d686a9ab6ca
parent21b61fe24223da81fcc35d2dfd3893f01285e2a5
[gdb/testsuite] Handle header files with local-remote-host.exp

With test-case gdb.base/included.exp and host board local-remote-host.exp with
tentative fix for PR29697 I run into:
...
included.c:18:10: fatal error: included.h: No such file or directory
 #include "included.h"
          ^~~~~~~~~~~~
compilation terminated.
...

Fix this by adding the missing gdb_remote_download calls.

Likewise in a few other test-cases.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/included.exp
gdb/testsuite/gdb.base/large-frame.exp
gdb/testsuite/gdb.base/line-symtabs.exp
gdb/testsuite/gdb.base/sep.exp
gdb/testsuite/gdb.base/shlib-call.exp