[Lldb-commits] LLDB Intel hardware breakpoints patch

Reverser via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 17 08:20:18 PST 2020


Hi,

 

Jonas Devlieghere asked me to send my patch to this mailing list because of potential licensing issues.

 

It adds hardware breakpoints support for i386 and x86_64 architectures, something that has been missing for a long time. I have written a blogpost about it at https://reverse.put.as/2019/11/19/how-to-make-lldb-a-real-debugger/.

 

Patch available in attachment and also here https://github.com/gdbinit/llvmpatches.

 

You most probably want to tweak it out and adapt to your project style. If I'm not mistaken there is no count between hardware breakpoints and watchpoints since they share the same resources. I didn't bother taking care of that but it's something that should exist in production ready code.

 

I declared the patch code as public domain. If it makes your life easier I can change it to whatever license you need, just tell me.

 

Best,

Pedro

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200117/43048876/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwbreakpoints.patch
Type: application/octet-stream
Size: 25447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200117/43048876/attachment-0001.obj>


More information about the lldb-commits mailing list