[gdb/testsuite] Use regular proc syntax for gdb_caching_proc
authorTom de Vries <tdevries@suse.de>
Mon, 6 Mar 2023 15:49:19 +0000 (16:49 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 6 Mar 2023 15:49:19 +0000 (16:49 +0100)
commitb50420fd058824ecc737709f49f87d622b0f3371
treecc1f11c246023c7acb69e0257b85fcbb866d46ab
parentb24a386d75a769d2362e9f9261a2efb023a88a82
[gdb/testsuite] Use regular proc syntax for gdb_caching_proc

A regular tcl proc with no args looks like:
...
proc foo {} {
     return 1
}
...
but a gdb_caching_proc deviates from that syntax by dropping the explicit no
args bit:
...
gdb_caching_proc foo {
     return 1
}
...

Make the gdb_caching_proc use the same syntax as regular procs, such that we
have instead:
...
gdb_caching_proc foo {} {
     return 1
}
...

Tested on x86_64-linux.

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.testsuite/gdb-caching-proc.exp
gdb/testsuite/lib/ada.exp
gdb/testsuite/lib/cache.exp
gdb/testsuite/lib/gdb-guile.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/opencl.exp
gdb/testsuite/lib/rocm.exp
gdb/testsuite/lib/rust-support.exp