summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 305d6a9c763..a8055725bd2 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -72,6 +72,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Path.h"
+#include "llvm/Support/PrettyStackTrace.h"
using namespace lldb;
using namespace lldb_private;
@@ -1526,13 +1527,8 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
std::string original_command_string(command_line);
Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_COMMANDS));
- Host::SetCrashDescriptionWithFormat("HandleCommand(command = \"%s\")",
- command_line);
-
- // Make a scoped cleanup object that will clear the crash description string
- // on exit of this function.
- lldb_utility::CleanUp<const char *> crash_description_cleanup(
- nullptr, Host::SetCrashDescription);
+ llvm::PrettyStackTraceFormat PST("HandleCommand(command = \"%s\")",
+ command_line);
if (log)
log->Printf("Processing command: %s", command_line);
OpenPOWER on IntegriCloud