summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/IOHandler.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-05-08 16:59:00 +0000
committerGreg Clayton <gclayton@apple.com>2014-05-08 16:59:00 +0000
commitc3d874a5843810e69b9847a6a4bb49c9481c6692 (patch)
tree3d5324d2969902043bcd687787449b49f2a4cc83 /lldb/source/Core/IOHandler.cpp
parent61449c6b9a69054a93e885b4503c2f9b3a7ce426 (diff)
downloadbcm5719-llvm-c3d874a5843810e69b9847a6a4bb49c9481c6692.tar.gz
bcm5719-llvm-c3d874a5843810e69b9847a6a4bb49c9481c6692.zip
lldb TOT is dropping the last entry for multi-line IOHandlers that use the IOHandlerDelegateMultiline.
<rdar://problem/16844164> llvm-svn: 208336
Diffstat (limited to 'lldb/source/Core/IOHandler.cpp')
-rw-r--r--lldb/source/Core/IOHandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp
index 88c96fbb53f..8573a1a9c5c 100644
--- a/lldb/source/Core/IOHandler.cpp
+++ b/lldb/source/Core/IOHandler.cpp
@@ -529,6 +529,7 @@ IOHandlerEditline::GetLines (StringList &lines, bool &interrupted)
else
{
LineStatus lines_status = LineStatus::Success;
+ Error error;
while (lines_status == LineStatus::Success)
{
@@ -551,7 +552,6 @@ IOHandlerEditline::GetLines (StringList &lines, bool &interrupted)
else
{
lines.AppendString(line);
- Error error;
lines_status = m_delegate.IOHandlerLinesUpdated(*this, lines, lines.GetSize() - 1, error);
}
}
@@ -560,6 +560,11 @@ IOHandlerEditline::GetLines (StringList &lines, bool &interrupted)
lines_status = LineStatus::Done;
}
}
+
+ // Call the IOHandlerLinesUpdated function with UINT32_MAX as the line
+ // number to indicate all lines are complete
+ m_delegate.IOHandlerLinesUpdated(*this, lines, UINT32_MAX, error);
+
success = lines.GetSize() > 0;
}
return success;
OpenPOWER on IntegriCloud