blob: ee9020d5a23caeddd4d18c14da1d52617fb467a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
graphic: 0.898
device: 0.639
mistranslation: 0.604
instruction: 0.593
semantic: 0.526
other: 0.293
socket: 0.293
vnc: 0.293
network: 0.272
boot: 0.177
KVM: 0.114
assembly: 0.047
newer version(>=5.2.0) of qemu-system-aarch64 cannot debug arm64 linux kernel
Description of problem:
Steps to reproduce:
1. Run QEMU in on teminal.
2. Run gdb-multiarch in another terminal, for example: gdb-multiarch ./linux-5.10.4/vmlinux
3. In gdb-multiarch, enter three commands in sequence:"target remote localhost:1234"、"b do_sys_open"、"continue"
4. GDB breakpoint cannot take effect
5. If using qemu-system-aarch64 5.0.0(manually compiled),GDB breakpoint can take effect.
Additional information:
I tested this problem using different combinations:
Host Os:Ubuntu18/Ubuntu20/Ubuntu22
ARM64 Linux Kernel: 5.4.50/5.10.4
QEMU:qemu 2.11/qemu 4.2/qemu 5.0/qemu 5.2/qemu 6.2/qemu 7
Finally, I found out that arm64 linux kernel cannot be debugged since qemu-system-aarch64 5.2.0.
|