[Lldb-commits] [PATCH] D133858: [lldb] Reset breakpoint hit count before new runs

Felipe de Azevedo Piovezan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 14 11:31:01 PDT 2022


fdeazeve added a comment.

In D133858#3790013 <https://reviews.llvm.org/D133858#3790013>, @jingham wrote:

> Resetting the hit counts on rerun is a more useful behavior, so this is all fine.  But the Target is the one that does all the breakpoint management, so I think the resetting should go through the Target, not the Process.  And we generally delegate "do on all breakpoints" operations to the BreakpointList, so it would be more consistent with the current structure to go Process::WillLaunch -> Target::ResetHitCounts -> BreakpointList::ResetHitCounts.

This makes sense! I've fixed this in the latest revision


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133858/new/

https://reviews.llvm.org/D133858



More information about the lldb-commits mailing list