]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Use default gdb_expect timeout in runto
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Thu, 4 Apr 2024 17:22:22 +0000 (14:22 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 22 Apr 2024 16:10:33 +0000 (13:10 -0300)
commitfdaa4939e5024ea809c0d4d1aa6043a60b37d9b5
tree30cd503485cf157974237fc08a678fa04d9af4c1
parent39f0ac383169d7ef8b3169e483ae95dd185e41bd
gdb/testsuite: Use default gdb_expect timeout in runto

runto uses a hard-coded timeout of 30s in its invocation of gdb_expect.
This is normally fine, but for very a slow system (e.g., an emulator) it
may not be enough time for GDB to reach the intended breakpoint.

gdb_expect can obtain a timeout value from user-configurable variables
when it's not given one explicitly, so use that mechanism instead since
the user will have already adjusted the timeout variable to account for
the slow system.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/lib/gdb.exp