File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1874,9 +1874,20 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
1874
1874
// going to show the progress.
1875
1875
const uint64_t id = data->GetID ();
1876
1876
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
+ }
1877
1888
if (id != *m_current_event_id)
1878
1889
return ;
1879
- if (data->GetCompleted ())
1890
+ if (data->GetCompleted () == data-> GetTotal () )
1880
1891
m_current_event_id.reset ();
1881
1892
} else {
1882
1893
m_current_event_id = id;
@@ -1899,7 +1910,7 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
1899
1910
// Print over previous line, if any.
1900
1911
output->Printf (" \r " );
1901
1912
1902
- if (data->GetCompleted ()) {
1913
+ if (data->GetCompleted () == data-> GetTotal () ) {
1903
1914
// Clear the current line.
1904
1915
output->Printf (" \x1B [2K" );
1905
1916
output->Flush ();
You can’t perform that action at this time.
0 commit comments