[gdb/testsuite] Factor out proc with_lock
commitfbb0edfe60edf4ca01884151e6d9b1353aaa0a7e
authorTom de Vries <tdevries@suse.de>
Sat, 4 May 2024 08:41:09 +0000 (4 10:41 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 4 May 2024 08:41:09 +0000 (4 10:41 +0200)
treec29f6e2f9715ed7b98642439677fe799e4c8924f
parentc42c12f9bf93b5f10f3d6dc10f45d9484a7f9faa
[gdb/testsuite] Factor out proc with_lock

Factor out proc with_lock from with_rocm_gpu_lock, and move required procs
lock_file_acquire and lock_file_release to lib/gdb-utils.exp.

Tested on aarch64-linux.

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