JDevlieghere added a comment.

In https://reviews.llvm.org/D54221#1290572, @labath wrote:

> I recall something about linux on arm having a magic unmodifiable (even by 
> ptrace) page of memory, so this could be useful there too. However, it's not 
> clear to me how a user is going to figure out that he needs to enable this 
> setting. Would it make sense to automatically try setting a hardware 
> breakpoint if software breakpoint fails?


My main concern would be that hardware breakpoints are a limited resource and 
not something we want to make transparent to the user, because it's only a 
matter of time before it fails. We'd also have to think about what happens to a 
breakpoint when one of its locations is a software bploc and the other a 
hardware one. I'm not against the idea but it would require some more thinking 
and definitely a separate patch.


https://reviews.llvm.org/D54221



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

Reply via email to