Skip to content

Commit fd1ac0e

Browse files
authored
Merge pull request #4945 from medismailben/swift/release/5.7
2 parents c94b559 + 00d0479 commit fd1ac0e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,9 +1874,20 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
18741874
// going to show the progress.
18751875
const uint64_t id = data->GetID();
18761876
if (m_current_event_id) {
1877+
Log *log = GetLog(LLDBLog::Events);
1878+
if (log && log->GetVerbose()) {
1879+
StreamString log_stream;
1880+
log_stream.AsRawOstream()
1881+
<< static_cast<void *>(this) << " Debugger(" << GetID()
1882+
<< ")::HandleProgressEvent( m_current_event_id = "
1883+
<< *m_current_event_id << ", data = { ";
1884+
data->Dump(&log_stream);
1885+
log_stream << " } )";
1886+
log->PutString(log_stream.GetString());
1887+
}
18771888
if (id != *m_current_event_id)
18781889
return;
1879-
if (data->GetCompleted())
1890+
if (data->GetCompleted() == data->GetTotal())
18801891
m_current_event_id.reset();
18811892
} else {
18821893
m_current_event_id = id;
@@ -1899,7 +1910,7 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
18991910
// Print over previous line, if any.
19001911
output->Printf("\r");
19011912

1902-
if (data->GetCompleted()) {
1913+
if (data->GetCompleted() == data->GetTotal()) {
19031914
// Clear the current line.
19041915
output->Printf("\x1B[2K");
19051916
output->Flush();

0 commit comments

Comments
 (0)