summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-03-02 00:20:26 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-03-02 00:20:26 +0000
commitd77c2e09266304864ca95434bb8f4eb1605f057a (patch)
tree88c19efefcc36015f00e954d592c6f313f6f40ff /lldb/source/Commands/CommandObjectCommands.cpp
parent70f5fc13691d503df28f885f8742f30d83a83307 (diff)
downloadbcm5719-llvm-d77c2e09266304864ca95434bb8f4eb1605f057a.tar.gz
bcm5719-llvm-d77c2e09266304864ca95434bb8f4eb1605f057a.zip
[Reproducers] Capture and replay interpreter commands.
This patch adds the necessary logic to capture and replay commands entered into the command interpreter. A DataRecorder shadows the input and writes its data to a know file. During replay this file is used as the command interpreter's input. It's possible to the command interpreter more than once, with a different input source. We support this scenario by using multiple buffers. The synchronization for this takes place at the SB layer, where we create a new recorder every time the debugger input is changed. During replay we use the corresponding buffer as input. Differential revision: https://reviews.llvm.org/D58564 llvm-svn: 355249
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index df6ec6492d7..6c92493150b 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -1040,7 +1040,7 @@ protected:
llvm::StringRef(), // Continuation prompt
multiple_lines, color_prompt,
0, // Don't show line numbers
- *this));
+ *this, nullptr));
if (io_handler_sp) {
debugger.PushIOHandler(io_handler_sp);
OpenPOWER on IntegriCloud