gdb/testsuite: use "set sysroot" in gdb.multi/multi-target.exp.tcl
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 10 Feb 2021 23:01:10 +0000 (18:01 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 10 Feb 2021 23:01:10 +0000 (18:01 -0500)
commit25ad1e83c8949c83d6aa6fba7fb27134d105debe
tree8ae942d48445667f2254d39b9595f043e4e8208c
parent18b8df43bd11ed314153dff2ef04a4b991f00a7c
gdb/testsuite: use "set sysroot" in gdb.multi/multi-target.exp.tcl

The multi-target tests involve some inferiors using remote targets.  By
default, GDB uses target: as the sysroot, which makes it read loaded
libraries and their debug info through GDBserver.  This makes the tests
run slower than necessary.

Pass `-ex "set sysroot"` when launching GDB in these tests, so that GDB
always reads from its local file system.

On a system where I don't have debug info for libc, that reduces run
time for

    $ make check TESTS="gdb.multi/multi-target-*.exp"

from 1:15 to 0:45.

On this other system where debug info is installed though, it reduces it
from 13:00 to 1:45.

gdb/testsuite/ChangeLog:

* gdb.multi/multi-target.exp.tcl (setup): Add "set sysroot" to
GDBFLAGS.

Change-Id: I9d24f3def843472d35dfb5667c12d70ae1d7e984
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/multi-target.exp.tcl
This page took 0.027589 seconds and 4 git commands to generate.