]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Add gdb.arch/aarch64-mops-watchpoint.exp
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Thu, 4 Apr 2024 17:05:47 +0000 (14:05 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 7 Jun 2024 21:25:59 +0000 (18:25 -0300)
commit55e3fcf5e523007bd97868214e00324db42c11f6
tree130a22a77ab6866f1ddc753eb6ebeed7a5ddc74d
parentebd06ca6b9bb2327e1269b52eb99b2f012faabf9
gdb/testsuite: Add gdb.arch/aarch64-mops-watchpoint.exp

Test behaviour of watchpoints triggered by MOPS instructions.  This test
is similar to gdb.base/memops-watchpoint.exp, but specifically for MOPS
instructions rather than whatever instructions are used in the libc's
implementation of memset/memcpy/memmove.

There's a separate watched variable for each set of instructions so that
the testcase can test whether GDB correctly identified the watchpoint
that triggered in each case.

Approved-By: Luis Machado <luis.machado@arm.com>
Tested-By: Luis Machado <luis.machado@arm.com>
gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp [new file with mode: 0644]