]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: add gcore_cmd_available predicate proc
authorAndrew Burgess <aburgess@redhat.com>
Tue, 11 Mar 2025 16:42:53 +0000 (16:42 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 6 May 2025 12:06:25 +0000 (13:06 +0100)
commit18e05d3a711b3b86ace033fe6544407fe8d12555
tree8dad9c7e2a3a4003a783512c24c8d39d14bb2f7b
parent41b0ab843fb8f1639c34776512f0886af96a36a9
gdb/testsuite: add gcore_cmd_available predicate proc

Add a new gcore_cmd_available predicate proc that can be used in a
'requires' line, and make use of it in a few tests.

All of the tests I have modified call gdb_gcore_cmd as one of their
first actions and exit if the gcore command is not available, so it
makes sense (I think) to move the gcore command check into a requires
call.

There should be no change in what is actually run after this commit.
gdb/testsuite/gdb.ada/task_switch_in_core.exp
gdb/testsuite/gdb.base/coredump-filter-build-id.exp
gdb/testsuite/gdb.base/gcore.exp
gdb/testsuite/gdb.base/print-symbol-loading.exp
gdb/testsuite/gdb.base/solib-search.exp
gdb/testsuite/gdb.tui/corefile-run.exp
gdb/testsuite/lib/gdb.exp