gdb/testsuite: updates for gdb.arch/{amd64,i386}-disp-step-self-call.exp
authorAndrew Burgess <aburgess@redhat.com>
Fri, 7 Apr 2023 05:19:58 +0000 (06:19 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 7 Apr 2023 05:24:20 +0000 (06:24 +0100)
commit9340f361097963011369c3339f7d28239d2f851b
tree1a50db11c7ca76d3796f516aca97aa7b523a2aba
parenta67a3bbd35c3d8f028cad5cb9e3122e56071baee
gdb/testsuite: updates for gdb.arch/{amd64,i386}-disp-step-self-call.exp

This commit:

  commit cf141dd8ccd36efe833aae3ccdb060b517cc1112
  Date:   Wed Feb 22 12:15:34 2023 +0000

      gdb: fix reg corruption from displaced stepping on amd64

Added two test scripts gdb.arch/amd64-disp-step-self-call.exp and
gdb.arch/i386-disp-step-self-call.exp.  These scripts contained a test
that included a stack address in the test name, this makes it harder
to compare results between runs.

This commit gives the tests proper names that doesn't include an
address.

Also in gdb.arch/i386-disp-step-self-call.exp I noticed that we were
writing 8-bytes rather than 4 in order to clear the return address
entry on the stack.  This is also fixed in this commit.
gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp