summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-11 00:18:09 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-11 00:18:09 +0000
commit39d7d4f05665be9e230bed1ae25c02655888a0bc (patch)
tree2df8140d0bbca7f40886f96ae0c35668ff63f072 /lldb/source/Commands/CommandObjectBreakpointCommand.h
parent3a12890338cbd7e9c7bd8a8dd494d71cb52c4b7d (diff)
downloadbcm5719-llvm-39d7d4f05665be9e230bed1ae25c02655888a0bc.tar.gz
bcm5719-llvm-39d7d4f05665be9e230bed1ae25c02655888a0bc.zip
Added [-o <one-liner>] to the "breakpoint command add" lldb command to be able
to specify a one-liner (either scripting or lldb command) inline. Refactored CommandObjectBreakpointCommandAdd::Execute() a little bit and added some comments. Sn now, we use: breakpoint command add -p 1 -o "conditional_break.stop_if_called_from_a()" to specify a Python one-liner as the callback for breakpoint #1. llvm-svn: 113672
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.h')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpointCommand.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpointCommand.h b/lldb/source/Commands/CommandObjectBreakpointCommand.h
index fc59c7714da..262ef1fb090 100644
--- a/lldb/source/Commands/CommandObjectBreakpointCommand.h
+++ b/lldb/source/Commands/CommandObjectBreakpointCommand.h
@@ -74,6 +74,11 @@ public:
BreakpointOptions *bp_options,
CommandReturnObject &result);
+ void
+ SetBreakpointCommandCallback (CommandInterpreter &interpreter,
+ BreakpointOptions *bp_options,
+ const char *oneliner);
+
static size_t
GenerateBreakpointCommandCallback (void *baton,
InputReader &reader,
@@ -115,6 +120,10 @@ public:
bool m_use_commands;
bool m_use_script_language;
lldb::ScriptLanguage m_script_language;
+
+ // Instance variables to hold the values for one_liner options.
+ bool m_use_one_liner;
+ std::string m_one_liner;
};
private:
OpenPOWER on IntegriCloud