blob: 07b3b0b09c4bd7f89894cc79bdccc04d294ce393 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
x86: 0.944
graphic: 0.885
device: 0.829
kernel: 0.808
boot: 0.800
PID: 0.770
hypervisor: 0.752
performance: 0.721
semantic: 0.683
debug: 0.661
architecture: 0.657
files: 0.633
socket: 0.627
vnc: 0.596
peripherals: 0.590
permissions: 0.567
register: 0.558
risc-v: 0.554
ppc: 0.553
network: 0.549
VMM: 0.502
TCG: 0.480
arm: 0.454
mistranslation: 0.446
user-level: 0.412
assembly: 0.382
i386: 0.381
virtual: 0.274
KVM: 0.242
Breakpoint setting not working on apple Mac host
Description of problem:
1. When use with parameter "-machine virt,accel=hvf -cpu host" to run launch a emulator, it can't set breakpoint and will report error: "warning: failed to set breakpoint site at 0xffff800081bf03cc for breakpoint 1.1: error: 34 sending the breakpoint request"
but if not use with parameter "-machine virt -cpu cortex-a57",The breakpoint can be set successfully.
2. Set hardware breakpoint with lldb command "breakpoint set -H -a 0xFFFF800080000000" not report error, but can't hint breakpoint. I try set breakpoint on a old x86 MacOS, It will hint breakpoint successfully.
3. I also try run qemu-system-x86_64 emulator on apple silicon mac, It also can't hint hardware breakping. The command is:
```
qemu-system-x86_64 -machine q35,accel=tcg -smp cpus=8 \
-kernel arch/x86/boot/bzImage \
-append "okaslr"\
-nographic -serial mon:stdio \
-m 16G \
-s -S
```
Steps to reproduce:
1. Launch qemu on Apple silicon Mac. Remember to user "hvf"
2. Launch lldb or gdb to set breakpoint.
3. Set breakpoint and hardware breakpoint.
4. resume to run qemu by lldb.
Additional information:
|