pwndbg/pwndbg

Run gdb-tests in qemu-system

Open

#2,277 创建于 2024年7月2日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)Python (5,820 star) (776 fork)batch import
help wantedtesting

描述

We currently only run gdb-tests on a x86 GH machine and inside Docker on an x86 GH machine. This means no commands get tested on other architectures. This has resulted in a number of cases where things are broken on other architectures.

We should run the gdb-tests in qemu-system for these other architectures. To keep the scope of this issue smaller, we can just limit it to qemu-system-aarch64 for now, as we already run this for the kernel tests. You can use the ubuntu-jammy-arm64.img file you find here: https://github.com/gsingh93/linux-exploit-dev-env/releases/tag/2024.04.07-ebc24a8 (we will move this to pwndbg/linux-exploit-dev-env before merging).

If we can get Docker working in qemu-system-aarch64 then that would make this easy, as we would just do everything exactly as we normally do for Docker tests. If this isn't feasible, we can try getting setup.sh to work inside QEMU and run the tests directly in there.

贡献者指南