aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-09-26 19:47:37 +0000
committerJim Ingham <jingham@apple.com>2016-09-26 19:47:37 +0000
commitf7e07256283cc080b2720ee6587b96d92ef6f9e5 (patch)
treec9fb2ed60b237f2def721efcab79b9a749f16a35 /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parent6477ce2697bf1d9afd2bcc0cf0c16c7cf08713be (diff)
downloadllvm-f7e07256283cc080b2720ee6587b96d92ef6f9e5.zip
llvm-f7e07256283cc080b2720ee6587b96d92ef6f9e5.tar.gz
llvm-f7e07256283cc080b2720ee6587b96d92ef6f9e5.tar.bz2
Fix serialization of Python breakpoint commands.
CommandData breakpoint commands didn't know whether they were Python or Command line commands, so they couldn't serialize & deserialize themselves properly. Fix that. I also changed the "breakpoint list" command to note in the output when the commands are Python commands. Fortunately only one test was relying on this explicit bit of text output. llvm-svn: 282432
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
index f27fb7c..1d2d6a1 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
@@ -264,14 +264,7 @@ are no syntax errors may indicate that a function was declared but never called.
for (auto bp_options : bp_options_vec) {
auto cmd_data = llvm::make_unique<BreakpointOptions::CommandData>();
- // It's necessary to set both user_source and script_source to the
- // oneliner.
- // The former is used to generate callback description (as in breakpoint
- // command list)
- // while the latter is used for Python to interpret during the actual
- // callback.
cmd_data->user_source.AppendString(oneliner);
- cmd_data->script_source.assign(oneliner);
cmd_data->stop_on_error = m_options.m_stop_on_error;
bp_options->SetCommandDataCallback(cmd_data);