[gdb/testsuite] Ignore pass in gdb_caching_proc
authorTom de Vries <tdevries@suse.de>
Wed, 19 Feb 2020 06:05:13 +0000 (07:05 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 19 Feb 2020 06:05:13 +0000 (07:05 +0100)
commit9db2b96b0759fda3347743caba66a395d115e335
tree77d6b5338998fafe41d09873179c4a951507120c
parent2c7c5554df19e410ea3a7d78b0c1435967a4bc62
[gdb/testsuite] Ignore pass in gdb_caching_proc

Before commit d4295de4f3 "[gdb/testsuite] Handle missing gnatmake in
gnat_runtime_has_debug_info", calling the gdb_caching_proc
gnat_runtime_has_debug_info could generate a pass because of using
gdb_compile_ada.

This has been fixed in that commit by using a factored out variant
gdb_compile_ada_1, which does not call pass.

Additionally, fix cases like this in more generic way: by ignoring pass calls
during execution of a gdb_caching_proc.

Build and reg-tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-02-19  Tom de Vries  <tdevries@suse.de>

* lib/cache.exp (ignore_pass, gdb_do_cache_wrap): New proc.
(gdb_do_cache): Use gdb_do_cache_wrap.
* gdb.base/gdb-caching-proc.exp (test_proc): Use gdb_do_cache_wrap.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/gdb-caching-proc.exp
gdb/testsuite/lib/cache.exp
This page took 0.040317 seconds and 4 git commands to generate.