[Lldb-commits] [lldb] f2ffa33 - [lldb/Interpreter] Fix another eExpressionThreadVanished warning
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Sat May 23 13:27:41 PDT 2020
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'",
More information about the lldb-commits
mailing list