[Lldb-commits] [PATCH] D111899: LLDB tests modification for hardware breakpoints

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 18 10:11:42 PDT 2021


If you have the breakpoint ID, you can find the SB Breakpoint and just ask it directly what it's hit count or location hit count are, and you don't have to scrub text output.

Jim


> On Oct 18, 2021, at 2:55 AM, Nikolay Chokoev via Phabricator <reviews at reviews.llvm.org> wrote:
> 
> georgiev added a comment.
> 
> What about the case when we have a logical BP with more than one location? the locations may have different hit count.
> In particular we have a test like:
> patterns=[
> 
>  "1\.1: .+ unresolved, hit count = 0 +Options: disabled",
>  "1\.2: .+ resolved,( hardware,)? hit count = 1",
>  "1\.3: .+ resolved,( hardware,)? hit count = 1"])
> 
> 
> CHANGES SINCE LAST ACTION
>  https://reviews.llvm.org/D111899/new/
> 
> https://reviews.llvm.org/D111899
> 



More information about the lldb-commits mailing list