[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/11] tests/tcg: relax the next step precision of the gdb sha
From: |
Alex Bennée |
Subject: |
[PATCH v2 07/11] tests/tcg: relax the next step precision of the gdb sha1 test |
Date: |
Thu, 1 Apr 2021 11:25:26 +0100 |
Depending on the version of gdb we may not execute the first line of
SHA1Init when executing the first "next" command - instead just
stepping over the preamble. As we don't actually care about the
position of the PC after the steps and want to be sure the
context->state[] has been loaded before we inspect it do a double next
at the start.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/tcg/multiarch/gdbstub/sha1.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/tcg/multiarch/gdbstub/sha1.py
b/tests/tcg/multiarch/gdbstub/sha1.py
index 2bfde49633..423b720e6d 100644
--- a/tests/tcg/multiarch/gdbstub/sha1.py
+++ b/tests/tcg/multiarch/gdbstub/sha1.py
@@ -40,7 +40,10 @@ def run_test():
check_break("SHA1Init")
- # check step and inspect values
+ # Check step and inspect values. We do a double next after the
+ # breakpoint as depending on the version of gdb we may step the
+ # preamble and not the first actual line of source.
+ gdb.execute("next")
gdb.execute("next")
val_ctx = gdb.parse_and_eval("context->state[0]")
exp_ctx = 0x67452301
--
2.20.1
- Re: [PATCH v2 04/11] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers, (continued)
- [PATCH v2 03/11] tests/tcg: add concept of container_hosts, Alex Bennée, 2021/04/01
- [PATCH v2 11/11] gitlab-ci.yml: Test the dtrace backend in one of the jobs, Alex Bennée, 2021/04/01
- [PATCH v2 05/11] tests/tcg/i386: expand .data sections for system tests, Alex Bennée, 2021/04/01
- [PATCH v2 01/11] tests/tcg: update the defaults for x86 compilers, Alex Bennée, 2021/04/01
- [PATCH v2 09/11] docs/system/gdb.rst: Document how to debug multicore machines, Alex Bennée, 2021/04/01
- [PATCH v2 07/11] tests/tcg: relax the next step precision of the gdb sha1 test,
Alex Bennée <=
- [PATCH v2 08/11] docs/system/gdb.rst: Add some more heading structure, Alex Bennée, 2021/04/01
- [PATCH v2 10/11] gitlab-ci.yml: Fix the filtering for the git submodules, Alex Bennée, 2021/04/01
- [PATCH v2 06/11] tests/tcg/i386: force -fno-pie for test-i386, Alex Bennée, 2021/04/01