]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
[gdb/testsuite] Add cache_verify option for gdb_caching_procs
authorTom de Vries <tdevries@suse.de>
Mon, 16 Mar 2020 13:39:07 +0000 (14:39 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 16 Mar 2020 13:39:07 +0000 (14:39 +0100)
commit2f89101fe8b6a2423116a1ad1891f56bf6fc9510
treebe88c804e6601101690bfc3f117bb1fbbd14c202
parent4b3ecb3b91b1b6154a6444efdcbadb90854a6654
[gdb/testsuite] Add cache_verify option for gdb_caching_procs

Test-case gdb.base/gdb-caching-proc.exp tests whether procs declared using
gdb_caching_proc give the same results when called more than once.

While this tests consistency of the procs in the context of that test-case, it
doesn't test consistency across the call sites.

Add a local variable cache_verify to proc gdb_do_cache, that can be set to 1
to verify gdb_caching_proc consistency across the call sites.

Likewise, add a local variable cache_verify_proc to set to the name of the
gdb_caching_proc to verify.  This can f.i. be used when changing an existing
proc into a gdb_caching_proc.

Tested on x86_64-linux, with cache_verify set to both 0 and 1.

gdb/testsuite/ChangeLog:

2020-03-16  Tom de Vries  <tdevries@suse.de>

* lib/cache.exp (gdb_do_cache): Add and handle local variables
cache_verify and cache_verify_proc.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/cache.exp