[Lldb-commits] [PATCH] D56014: [lldb] - Fix crash when listing the history with the key up.

George Rimar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 16 01:31:42 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL351313: [lldb] - Fix crash when listing the history with the key up. (authored by grimar, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D56014?vs=179313&id=181993#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56014/new/

https://reviews.llvm.org/D56014

Files:
  lldb/trunk/source/Host/common/Editline.cpp


Index: lldb/trunk/source/Host/common/Editline.cpp
===================================================================
--- lldb/trunk/source/Host/common/Editline.cpp
+++ lldb/trunk/source/Host/common/Editline.cpp
@@ -443,7 +443,7 @@
     m_live_history_lines = m_input_lines;
     m_in_history = true;
   } else {
-    if (history_w(pHistory, &history_event, earlier ? H_NEXT : H_PREV) == -1) {
+    if (history_w(pHistory, &history_event, earlier ? H_PREV : H_NEXT) == -1) {
       // Can't move earlier than the earliest entry
       if (earlier)
         return CC_ERROR;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56014.181993.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190116/5380b3f6/attachment.bin>


More information about the lldb-commits mailing list