[lldb-dev] Question about breakpoint hit counts
zturner at google.com
Wed Jan 14 13:28:08 PST 2015
When I hit a breakpoint on Windows, I'm doing something like this:
lldb::break_id_t break_id = LLDB_INVALID_BREAK_ID;
bool should_stop = true;
should_stop = site->ValidForThisThread(stop_thread.get());
break_id = site->GetID();
When should_stop is true (which for now is basically always), this results
in the breakpoint's hit count not increasing. It seems this is because
specifying a value for should_stop leads to m_should_stop_is_valid being
initialized to true. But in StopInfoBreakpoint::ShouldStopSynchronous(),
we only bump the hit count if m_should_stop_is_valid is false.
I can fix this bug by using
instead, and since m_stop_info_is_valid is false, and it bumps the hit
count later. But I'm not sure if this is the right thing to do, or if the
behavior I'm seeing with specifying a value for should_stop on creation and
the hit count not going up is a bug.
Can anyone explain this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev