我正在使用 lldb Python API 来设置观察点并打印它:
Watchpoint 1: addr = 0x700005451ff0 size = 8 state = enabled type = w
declare @ '/Users/stringer/test.c:945'
new value: 0x000000011a4b1000
hw_index = -1 hit_count = 0 ignore_count = 0
从源代码:
With -1 representing an invalid hardware index.
我可以看到性能也很慢。有什么办法可以使用硬件断点?
编辑:
查看源代码似乎必须使用读取或写入设置来创建观察点,True
这就是我的情况。