3

I'm playing with the lldb Python API to set a watchpoint and printing it:

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 

From the source code:

With -1 representing an invalid hardware index.

I can see that the performance is quite slow too. Is there something that can be done to use hardware breakpoints?

Edit:

Looking at the source code it seems that the watchpoint must be created with either read or write set to True which is my case.

elmattic
  • 12,046
  • 5
  • 43
  • 79

0 Answers0