diff options
author | Jim Ingham <jingham@apple.com> | 2020-10-28 11:58:25 -0700 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2020-10-29 14:41:53 -0700 |
commit | a37672e2db7377681d996834a0c3073c9838a549 (patch) | |
tree | 450da9a0747a6f2a2589db0e14a92af4056c30c9 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | db7129a005c105ee17d39a5708d7a5be50df5f47 (diff) | |
download | llvm-a37672e2db7377681d996834a0c3073c9838a549.zip llvm-a37672e2db7377681d996834a0c3073c9838a549.tar.gz llvm-a37672e2db7377681d996834a0c3073c9838a549.tar.bz2 |
Mark the execution of stop-hooks as non-interactive.
The intention is not to allow stop-hook commands to query the
user, so this is correct. It also works around a deadlock in
switching to the Python Session to execute python based commands
in the stop hook when the Debugger stdin is backed by a FILE *.
Differential Revision: https://reviews.llvm.org/D90332
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index c6031f5..d6b4b89 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -2307,6 +2307,8 @@ void CommandInterpreter::HandleCommands(const StringList &commands, } CommandReturnObject tmp_result(m_debugger.GetUseColor()); + tmp_result.SetInteractive(result.GetInteractive()); + // If override_context is not NULL, pass no_context_switching = true for // HandleCommand() since we updated our context already. |