master
py 36 lines 1.06 KB
Raw
1 #!/usr/bin/env python3
2 #
3 # SPDX-License-Identifier: GPL-2.0-or-later
4 #
5 # Reverse debugging test for aarch64
6 #
7 # Copyright (c) 2020 ISP RAS
8 # Copyright (c) 2025 Linaro Limited
9 #
10 # Author:
11 # Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
12 # Gustavo Romero <gustavo.romero@linaro.org> (Run without Avocado)
13 #
14 # This work is licensed under the terms of the GNU GPL, version 2 or
15 # later. See the COPYING file in the top-level directory.
16
17 from qemu_test import Asset
18 from reverse_debugging import ReverseDebugging
19
20
21 class ReverseDebuggingAArch64(ReverseDebugging):
22
23 ASSET_KERNEL = Asset(
24 ('https://archives.fedoraproject.org/pub/archive/fedora/linux/'
25 'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
26 '7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
27
28 def test_aarch64_virt(self):
29 self.set_machine('virt')
30 self.cpu = 'cortex-a53'
31 kernel_path = self.ASSET_KERNEL.fetch()
32 self.reverse_debugging(gdb_arch='aarch64', args=('-kernel', kernel_path))
33
34
35 if __name__ == '__main__':
36 ReverseDebugging.main()