summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectWatchpoint.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-05 21:35:46 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-05 21:35:46 +0000
commit6cc60e86686b61e8cb636b3f04105a4f508d6336 (patch)
tree5dd841f285da2b3894a4c561be5106d14bbe2610 /lldb/source/Commands/CommandObjectWatchpoint.h
parenta2e40934d5f31998237ba962793d7577603c035b (diff)
downloadbcm5719-llvm-6cc60e86686b61e8cb636b3f04105a4f508d6336.tar.gz
bcm5719-llvm-6cc60e86686b61e8cb636b3f04105a4f508d6336.zip
Add capability to set ignore count for watchpoint on the command line:
watchpoint ignore -i <count> [<watchpt-id | watchpt-id-list>] Add tests of watchpoint ignore_count for command line as well as API. llvm-svn: 141217
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpoint.h')
-rw-r--r--lldb/source/Commands/CommandObjectWatchpoint.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.h b/lldb/source/Commands/CommandObjectWatchpoint.h
index fd5beedd5e0..508188eff1a 100644
--- a/lldb/source/Commands/CommandObjectWatchpoint.h
+++ b/lldb/source/Commands/CommandObjectWatchpoint.h
@@ -140,6 +140,56 @@ public:
private:
};
+//-------------------------------------------------------------------------
+// CommandObjectWatchpointIgnore
+//-------------------------------------------------------------------------
+
+class CommandObjectWatchpointIgnore : public CommandObject
+{
+public:
+ CommandObjectWatchpointIgnore (CommandInterpreter &interpreter);
+
+ virtual
+ ~CommandObjectWatchpointIgnore ();
+
+ virtual bool
+ Execute (Args& command,
+ CommandReturnObject &result);
+
+ virtual Options *
+ GetOptions ();
+
+ class CommandOptions : public Options
+ {
+ public:
+
+ CommandOptions (CommandInterpreter &interpreter);
+
+ virtual
+ ~CommandOptions ();
+
+ virtual Error
+ SetOptionValue (uint32_t option_idx, const char *option_arg);
+
+ void
+ OptionParsingStarting ();
+
+ const OptionDefinition *
+ GetDefinitions ();
+
+ // Options table: Required for subclasses of Options.
+
+ static OptionDefinition g_option_table[];
+
+ // Instance variables to hold the values for command options.
+
+ uint32_t m_ignore_count;
+ };
+
+private:
+ CommandOptions m_options;
+};
+
} // namespace lldb_private
#endif // liblldb_CommandObjectWatchpoint_h_
OpenPOWER on IntegriCloud