mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

These tests are using the gdb-related library functions from the Avocado framework which we don't have in the functional framework yet. So for the time being, keep those imports and skip the test if the Avocado framework is not installed on the host. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250414113031.151105-4-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
36 lines
932 B
Python
Executable file
36 lines
932 B
Python
Executable file
#!/usr/bin/env python3
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# Reverse debugging test
|
|
#
|
|
# Copyright (c) 2020 ISP RAS
|
|
#
|
|
# Author:
|
|
# Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
|
|
#
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or
|
|
# later. See the COPYING file in the top-level directory.
|
|
|
|
from qemu_test import skipIfMissingImports, skipFlakyTest
|
|
from reverse_debugging import ReverseDebugging
|
|
|
|
|
|
@skipIfMissingImports('avocado.utils')
|
|
class ReverseDebugging_X86_64(ReverseDebugging):
|
|
|
|
REG_PC = 0x10
|
|
REG_CS = 0x12
|
|
def get_pc(self, g):
|
|
return self.get_reg_le(g, self.REG_PC) \
|
|
+ self.get_reg_le(g, self.REG_CS) * 0x10
|
|
|
|
@skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2922")
|
|
def test_x86_64_pc(self):
|
|
self.set_machine('pc')
|
|
# start with BIOS only
|
|
self.reverse_debugging()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
ReverseDebugging.main()
|