After trying to use watch command, LLDB said the device had 0 available hardware watchpoints. In GDB you can use
set can-use-hw-watchpoints 0
How do you disable hardware watchpoints in LLDB?
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityAs we know there are limitations to using watchpoints: there are a finite amount of watchpoints permitted per architecture (typically 4) and the “watched” size of memory usually caps out at 8 bytes. Therefore, it is important to delete them after they are no longer needed.
You can delete a watchpoint in lldb
using the watchpoint delete
command and passing the watchpoint ID as an argument.
Example:
(lldb) watchpoint delete 1
1 watchpoints deleted.
Or we can use,
(lldb) w delete 1
1 watchpoints deleted.
To delete all watchpoints - simply omit the last argument.