Skip to content

Commit 12ff645

Browse files
committed
Only include title on the first message
1 parent 5ecce45 commit 12ff645

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lldb/include/lldb/Core/DebuggerEvents.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ class ProgressEventData : public EventData {
4444
uint64_t GetCompleted() const { return m_completed; }
4545
uint64_t GetTotal() const { return m_total; }
4646
std::string GetMessage() const {
47-
std::string message = m_title;
48-
if (!m_details.empty()) {
49-
message.append(": ");
50-
message.append(m_details);
51-
}
52-
return message;
47+
if (m_completed == 0) {
48+
std::string message = m_title;
49+
if (!m_details.empty()) {
50+
message.append(": ");
51+
message.append(m_details);
52+
}
53+
return message;
54+
} else
55+
return !m_details.empty() ? m_details : std::string();
5356
}
5457
const std::string &GetTitle() const { return m_title; }
5558
const std::string &GetDetails() const { return m_details; }

0 commit comments

Comments
 (0)