tests/guest-debug: introduce basic gdbstub tests
commit261f4d6d3e5445f887e070f047968e756c30cf06
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 17 Dec 2015 13:37:15 +0000 (17 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Dec 2015 13:37:15 +0000 (17 13:37 +0000)
tree06a9febb17200fe8187b04843b9af0e29e71a12b
parent34c45d53026d9c135415d034a8bc30c1a30acf1c
tests/guest-debug: introduce basic gdbstub tests

The aim of these tests is to combine with an appropriate kernel
image (with symbol-file vmlinux) and check it behaves as it should.
Given a kernel it checks:

  - single step
  - software breakpoint
  - hardware breakpoint
  - access, read and write watchpoints

On success it returns 0 to the calling process.

I've not plumbed this into the "make check" logic though as we need a
solution for providing non-host binaries to the tests. However the test
is structured to work with pretty much any Linux kernel image as it
uses the basic kernel_init code which is common across architectures.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1449599553-24713-7-git-send-email-alex.bennee@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/guest-debug/test-gdbstub.py [new file with mode: 0644]