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

 

Attachment: hwbreakpoints.patch
Description: Binary data

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to