Code was added to Target::RunStopHook to make sure that we don't run stop hooks when you stop for an expression evaluation. But the way it was done was to check that we hadn't run an expression since the last natural stop. That failed in the case where you stopped for a breakpoint which had run an expression, because the stop-hooks get run after the breakpoint actions, and so by the time we got to running the stop-hooks, we had already run a user expression.
I fixed this by adding a target ivar tracking the last natural stop ID at which we had run a stop-hook. Then we keep track of this and make sure we run the stop-hooks only once per natural stop.
clang-tidy: error: 'lldb/Breakpoint/BreakpointList.h' file not found [clang-diagnostic-error]
not useful