This patch should fix event handling for finite progress reports.
Previously, the event handler would get stuck when receiving a finite
progress report, and stop displaying upcoming reports.
This was due to the fact that we were checking if the progress event was
completed by calling GetCompleted but returns the completion amount
instead of saying whether it's completed.
That caused the current event id to remain the same, preventing all the
following progress reports to be shown to the user.
This patch also adds some logging to facilitate debugging progress events.
rdar://91788326
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
What's m_uid?
I would either fold these two log statements into one, and use LLDB_LOGV(GetLog(LLDBLog::Events), ... or I would use the event's dump method: