diff options
author | Jim Ingham <jingham@apple.com> | 2013-02-22 23:23:42 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-02-22 23:23:42 +0000 |
commit | d1715e1425e28c107aea20bbfdc4d49bcad37488 (patch) | |
tree | a13c11a41a89ecdb2a056cdd9ee433e6a25b9fd8 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | c46fe7c0d18c5b6630ec1abf38480edc81ad33e4 (diff) | |
download | bcm5719-llvm-d1715e1425e28c107aea20bbfdc4d49bcad37488.tar.gz bcm5719-llvm-d1715e1425e28c107aea20bbfdc4d49bcad37488.zip |
Correct the logic in DumpCommandHistory when the end index is UINT32_MAX.
<rdar://problem/13270229>
llvm-svn: 175927
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index b28ed64b252..631ed691bb6 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -2796,7 +2796,7 @@ CommandInterpreter::DumpHistory (Stream &stream, uint32_t count) const void CommandInterpreter::DumpHistory (Stream &stream, uint32_t start, uint32_t end) const { - const size_t last_idx = std::min<size_t>(m_command_history.size(), end + 1); + const size_t last_idx = std::min<size_t>(m_command_history.size(), end==UINT32_MAX ? UINT32_MAX : end + 1); for (size_t i = start; i < last_idx; i++) { if (!m_command_history[i].empty()) |