[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 7 13:36:48 PST 2018


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





More information about the lldb-commits mailing list