]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Simplify gdb.base/memops-watchpoint.exp
authorPedro Alves <pedro@palves.net>
Thu, 30 Jan 2025 20:38:29 +0000 (20:38 +0000)
committerPedro Alves <pedro@palves.net>
Tue, 23 Sep 2025 10:33:05 +0000 (11:33 +0100)
commitf0b7e23bdc80d0945517a4390cb56ececa7afc27
treea53263e4ef2c173db8641046f58f580ccfedb622
parented5f67b8f75c46b7a264d38f4f1d98adfc3b976c
Simplify gdb.base/memops-watchpoint.exp

gdb.base/memops-watchpoint.exp has the same code basically repeated
three times.  Simplify by refactoring the common code to a procedure.

Modernize the gdb_test_multiple call a little bit while at it: use
-wrap and $gdb_test_name.

Change-Id: I42d9cbccf32760a2bc3dab2aa60412ad5a2ae291
gdb/testsuite/gdb.base/memops-watchpoint.exp