aboutsummaryrefslogtreecommitdiff
path: root/source/Commands/CommandObjectBreakpoint.h
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-06-08 21:56:10 +0000
committerJim Ingham <jingham@apple.com>2012-06-08 21:56:10 +0000
commitda26bd203cbb104291b39891febf7481794f205f (patch)
treea0c7997374feb4506aee55387c2f3ab79e116527 /source/Commands/CommandObjectBreakpoint.h
parent2ed5c75ae763897f215305b749ce37b1b8496bb2 (diff)
downloadlldb-da26bd203cbb104291b39891febf7481794f205f.tar.gz
Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an
Execute which was never going to get run and another ExecuteRawCommandString. Took the knowledge of how to prepare raw & parsed commands out of CommandInterpreter and put it in CommandObject where it belongs. Also took all the cases where there were the subcommands of Multiword commands declared in the .h file for the overall command and moved them into the .cpp file. Made the CommandObject flags work for raw as well as parsed commands. Made "expr" use the flags so that it requires you to be paused to run "expr". git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@158235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Commands/CommandObjectBreakpoint.h')
-rw-r--r--source/Commands/CommandObjectBreakpoint.h320
1 files changed, 0 insertions, 320 deletions
diff --git a/source/Commands/CommandObjectBreakpoint.h b/source/Commands/CommandObjectBreakpoint.h
index 143b95462..2d674b22d 100644
--- a/source/Commands/CommandObjectBreakpoint.h
+++ b/source/Commands/CommandObjectBreakpoint.h
@@ -42,326 +42,6 @@ public:
};
-//-------------------------------------------------------------------------
-// CommandObjectdBreakpointSet
-//-------------------------------------------------------------------------
-
-
-class CommandObjectBreakpointSet : public CommandObject
-{
-public:
-
- typedef enum BreakpointSetType
- {
- eSetTypeInvalid,
- eSetTypeFileAndLine,
- eSetTypeAddress,
- eSetTypeFunctionName,
- eSetTypeFunctionRegexp,
- eSetTypeSourceRegexp,
- eSetTypeException
- } BreakpointSetType;
-
- CommandObjectBreakpointSet (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointSet ();
-
- 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.
-
- std::string m_condition;
- FileSpecList m_filenames;
- uint32_t m_line_num;
- uint32_t m_column;
- bool m_check_inlines;
- std::vector<std::string> m_func_names;
- uint32_t m_func_name_type_mask;
- std::string m_func_regexp;
- std::string m_source_text_regexp;
- FileSpecList m_modules;
- lldb::addr_t m_load_addr;
- uint32_t m_ignore_count;
- lldb::tid_t m_thread_id;
- uint32_t m_thread_index;
- std::string m_thread_name;
- std::string m_queue_name;
- bool m_catch_bp;
- bool m_throw_bp;
- lldb::LanguageType m_language;
- LazyBool m_skip_prologue;
-
- };
-
-private:
- bool
- GetDefaultFile (Target *target, FileSpec &file, CommandReturnObject &result);
-
- CommandOptions m_options;
-};
-
-//-------------------------------------------------------------------------
-// CommandObjectMultiwordBreakpointModify
-//-------------------------------------------------------------------------
-
-
-class CommandObjectBreakpointModify : public CommandObject
-{
-public:
-
- CommandObjectBreakpointModify (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointModify ();
-
- 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;
- lldb::tid_t m_thread_id;
- bool m_thread_id_passed;
- uint32_t m_thread_index;
- bool m_thread_index_passed;
- std::string m_thread_name;
- std::string m_queue_name;
- std::string m_condition;
- bool m_enable_passed;
- bool m_enable_value;
- bool m_name_passed;
- bool m_queue_passed;
- bool m_condition_passed;
-
- };
-
-private:
- CommandOptions m_options;
-};
-
-//-------------------------------------------------------------------------
-// CommandObjectBreakpointEnable
-//-------------------------------------------------------------------------
-
-class CommandObjectBreakpointEnable : public CommandObject
-{
-public:
- CommandObjectBreakpointEnable (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointEnable ();
-
- virtual bool
- Execute (Args& command,
- CommandReturnObject &result);
-
-private:
-};
-
-//-------------------------------------------------------------------------
-// CommandObjectBreakpointDisable
-//-------------------------------------------------------------------------
-
-class CommandObjectBreakpointDisable : public CommandObject
-{
-public:
- CommandObjectBreakpointDisable (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointDisable ();
-
- virtual bool
- Execute (Args& command,
- CommandReturnObject &result);
-
-private:
-};
-
-//-------------------------------------------------------------------------
-// CommandObjectBreakpointList
-//-------------------------------------------------------------------------
-
-class CommandObjectBreakpointList : public CommandObject
-{
-public:
- CommandObjectBreakpointList (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointList ();
-
- 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.
-
- lldb::DescriptionLevel m_level;
-
- bool m_internal;
- };
-
-private:
- CommandOptions m_options;
-};
-
-//-------------------------------------------------------------------------
-// CommandObjectBreakpointClear
-//-------------------------------------------------------------------------
-
-
-class CommandObjectBreakpointClear : public CommandObject
-{
-public:
-
- typedef enum BreakpointClearType
- {
- eClearTypeInvalid,
- eClearTypeFileAndLine
- } BreakpointClearType;
-
- CommandObjectBreakpointClear (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointClear ();
-
- 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.
-
- std::string m_filename;
- uint32_t m_line_num;
-
- };
-
-private:
- CommandOptions m_options;
-};
-
-//-------------------------------------------------------------------------
-// CommandObjectBreakpointDelete
-//-------------------------------------------------------------------------
-
-class CommandObjectBreakpointDelete : public CommandObject
-{
-public:
- CommandObjectBreakpointDelete (CommandInterpreter &interpreter);
-
- virtual
- ~CommandObjectBreakpointDelete ();
-
- virtual bool
- Execute (Args& command,
- CommandReturnObject &result);
-
-private:
-};
-
} // namespace lldb_private
#endif // liblldb_CommandObjectBreakpoint_h_