[Lldb-commits] [lldb] 7510aed - Handle eExpressionThreadVanished in error switch to handle

Eric Christopher via lldb-commits lldb-commits at lists.llvm.org
Fri May 22 13:44:28 PDT 2020


Author: Eric Christopher
Date: 2020-05-22T13:43:10-07:00
New Revision: 7510aede627267819d9693381ad6c16dccfa0d17

URL: https://github.com/llvm/llvm-project/commit/7510aede627267819d9693381ad6c16dccfa0d17
DIFF: https://github.com/llvm/llvm-project/commit/7510aede627267819d9693381ad6c16dccfa0d17.diff

LOG: Handle eExpressionThreadVanished in error switch to handle
covered switch warning.

Added: 
    

Modified: 
    lldb/source/Interpreter/CommandInterpreter.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index df19855b5f8c..1cd71b07eaeb 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -1620,6 +1620,11 @@ Status CommandInterpreter::PreprocessCommand(std::string &command) {
                                        "expression '%s'",
                                        expr_str.c_str());
         break;
+      case eExpressionThreadVanished:
+        error.SetErrorStringWithFormat(
+            "expression thread vanished for the expression '%s'",
+            expr_str.c_str());
+        break;
       }
     }
   }


        


More information about the lldb-commits mailing list