Author: Jonas Devlieghere
Date: 2020-05-23T13:27:31-07:00
New Revision: f2ffa33c79d3d0636d6c8eb7b5b7bcf8db7b397b

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

LOG: [lldb/Interpreter] Fix another eExpressionThreadVanished warning

Fixes warning: enumeration value 'eExpressionThreadVanished' not handled
in switch [-Wswitch] in CommandInterpreter.cpp.

Added: 
    

Modified: 
    lldb/source/Interpreter/CommandInterpreter.cpp

Removed: 
    


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


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to