mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
commands: Use override instead of virtual.
Summary: This removes all uses of virtual on functions where override could be used, including on destructors. It also adds override where virtual was previously missing. Reviewers: clayborg, labath Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13503 llvm-svn: 249564
This commit is contained in:
parent
b8269c7228
commit
13d21e9ae1
@ -77,11 +77,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointSet () {}
|
||||
~CommandObjectBreakpointSet () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -120,11 +119,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -356,7 +354,7 @@ public:
|
||||
return error;
|
||||
}
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_condition.clear();
|
||||
m_filenames.Clear();
|
||||
@ -388,7 +386,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -430,9 +428,9 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
|
||||
|
||||
@ -854,11 +852,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointModify () {}
|
||||
~CommandObjectBreakpointModify () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -888,11 +885,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -993,7 +989,7 @@ public:
|
||||
return error;
|
||||
}
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_ignore_count = 0;
|
||||
m_thread_id = LLDB_INVALID_THREAD_ID;
|
||||
@ -1013,7 +1009,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1045,8 +1041,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
|
||||
if (target == NULL)
|
||||
@ -1173,12 +1169,11 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointEnable () {}
|
||||
~CommandObjectBreakpointEnable () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget();
|
||||
if (target == NULL)
|
||||
@ -1293,12 +1288,11 @@ the second re-enables the first location."
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointDisable () {}
|
||||
~CommandObjectBreakpointDisable () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget();
|
||||
if (target == NULL)
|
||||
@ -1403,11 +1397,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointList () {}
|
||||
~CommandObjectBreakpointList () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1423,11 +1416,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1458,7 +1450,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_level = lldb::eDescriptionLevelFull;
|
||||
m_internal = false;
|
||||
@ -1466,7 +1458,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition *
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1484,8 +1476,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
|
||||
|
||||
@ -1600,11 +1592,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointClear () {}
|
||||
~CommandObjectBreakpointClear () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1620,11 +1611,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1648,14 +1638,14 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_filename.clear();
|
||||
m_line_num = 0;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1672,8 +1662,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget();
|
||||
if (target == NULL)
|
||||
@ -1800,11 +1790,10 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointDelete () {}
|
||||
~CommandObjectBreakpointDelete () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1820,11 +1809,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1848,14 +1836,14 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_use_dummy = false;
|
||||
m_force = false;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1870,8 +1858,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
|
||||
|
||||
@ -1990,27 +1978,26 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual
|
||||
~BreakpointNameOptionGroup ()
|
||||
~BreakpointNameOptionGroup () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual uint32_t
|
||||
GetNumDefinitions ()
|
||||
uint32_t
|
||||
GetNumDefinitions () override
|
||||
{
|
||||
return sizeof (g_breakpoint_name_options) / sizeof (OptionDefinition);
|
||||
}
|
||||
|
||||
virtual const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
const OptionDefinition*
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_breakpoint_name_options;
|
||||
}
|
||||
|
||||
virtual Error
|
||||
Error
|
||||
SetOptionValue (CommandInterpreter &interpreter,
|
||||
uint32_t option_idx,
|
||||
const char *option_value)
|
||||
const char *option_value) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_breakpoint_name_options[option_idx].short_option;
|
||||
@ -2038,8 +2025,8 @@ public:
|
||||
return error;
|
||||
}
|
||||
|
||||
virtual void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter)
|
||||
void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter) override
|
||||
{
|
||||
m_name.Clear();
|
||||
m_breakpoint.Clear();
|
||||
@ -2076,18 +2063,17 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointNameAdd () {}
|
||||
~CommandObjectBreakpointNameAdd () override {}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
if (!m_name_options.m_name.OptionWasSet())
|
||||
{
|
||||
@ -2172,18 +2158,17 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointNameDelete () {}
|
||||
~CommandObjectBreakpointNameDelete () override {}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
if (!m_name_options.m_name.OptionWasSet())
|
||||
{
|
||||
@ -2257,18 +2242,17 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointNameList () {}
|
||||
~CommandObjectBreakpointNameList () override {}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_name_options.m_use_dummy.GetCurrentValue());
|
||||
|
||||
@ -2353,8 +2337,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointName ()
|
||||
~CommandObjectBreakpointName () override
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -178,17 +178,16 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointCommandAdd () {}
|
||||
~CommandObjectBreakpointCommandAdd () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
virtual void
|
||||
IOHandlerActivated (IOHandler &io_handler)
|
||||
void
|
||||
IOHandlerActivated (IOHandler &io_handler) override
|
||||
{
|
||||
StreamFileSP output_sp(io_handler.GetOutputStreamFile());
|
||||
if (output_sp)
|
||||
@ -199,8 +198,8 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
}
|
||||
|
||||
|
||||
virtual void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &line)
|
||||
void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &line) override
|
||||
{
|
||||
io_handler.SetIsDone(true);
|
||||
|
||||
@ -315,11 +314,10 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -374,7 +372,7 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
return error;
|
||||
}
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_use_commands = true;
|
||||
m_use_script_language = false;
|
||||
@ -388,7 +386,7 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -412,8 +410,8 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
|
||||
|
||||
@ -596,11 +594,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointCommandDelete () {}
|
||||
~CommandObjectBreakpointCommandDelete () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -615,11 +612,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -639,13 +635,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_use_dummy = false;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -659,8 +655,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
|
||||
|
||||
@ -764,13 +760,12 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectBreakpointCommandList () {}
|
||||
~CommandObjectBreakpointCommandList () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
~CommandObjectBugreportUnwind()
|
||||
~CommandObjectBugreportUnwind() override
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -47,10 +47,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectCommandsHistory () {}
|
||||
~CommandObjectCommandsHistory () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -70,11 +70,10 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions (){}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -109,7 +108,7 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_start_idx.Clear();
|
||||
m_stop_idx.Clear();
|
||||
@ -118,7 +117,7 @@ protected:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -136,7 +135,7 @@ protected:
|
||||
};
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
if (m_options.m_clear.GetCurrentValue() && m_options.m_clear.OptionWasSet())
|
||||
{
|
||||
@ -259,15 +258,15 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsSource () {}
|
||||
~CommandObjectCommandsSource () override {}
|
||||
|
||||
virtual const char*
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index)
|
||||
const char*
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index) override
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -275,7 +274,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -291,8 +290,8 @@ public:
|
||||
return matches.GetSize();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -311,11 +310,10 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions (){}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -343,7 +341,7 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_stop_on_error.Clear();
|
||||
m_silent_run.Clear();
|
||||
@ -351,7 +349,7 @@ protected:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -368,7 +366,7 @@ protected:
|
||||
};
|
||||
|
||||
bool
|
||||
DoExecute(Args& command, CommandReturnObject &result)
|
||||
DoExecute(Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = command.GetArgumentCount();
|
||||
if (argc == 1)
|
||||
@ -553,13 +551,13 @@ rather than using a positional placeholder:" R"(
|
||||
m_arguments.push_back (arg3);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsAlias ()
|
||||
~CommandObjectCommandsAlias () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result) override
|
||||
{
|
||||
Args args (raw_command_line);
|
||||
std::string raw_command_string (raw_command_line);
|
||||
@ -820,13 +818,13 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsUnalias()
|
||||
~CommandObjectCommandsUnalias() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
CommandObject::CommandMap::iterator pos;
|
||||
CommandObject *cmd_obj;
|
||||
@ -913,13 +911,13 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsDelete()
|
||||
~CommandObjectCommandsDelete() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
CommandObject::CommandMap::iterator pos;
|
||||
|
||||
@ -1000,7 +998,7 @@ a number follows 'f':" R"(
|
||||
);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsAddRegex()
|
||||
~CommandObjectCommandsAddRegex() override
|
||||
{
|
||||
}
|
||||
|
||||
@ -1250,11 +1248,10 @@ private:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions (){}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1277,14 +1274,14 @@ private:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_help.clear();
|
||||
m_syntax.clear();
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1363,13 +1360,12 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPythonFunction ()
|
||||
~CommandObjectPythonFunction () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
IsRemovable () const
|
||||
bool
|
||||
IsRemovable () const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -1386,8 +1382,8 @@ public:
|
||||
return m_synchro;
|
||||
}
|
||||
|
||||
virtual const char *
|
||||
GetHelpLong ()
|
||||
const char *
|
||||
GetHelpLong () override
|
||||
{
|
||||
if (!m_fetched_help_long)
|
||||
{
|
||||
@ -1404,8 +1400,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result) override
|
||||
{
|
||||
ScriptInterpreter* scripter = m_interpreter.GetScriptInterpreter();
|
||||
|
||||
@ -1470,13 +1466,12 @@ public:
|
||||
GetFlags().Set(scripter->GetFlagsForCommandObject(cmd_obj_sp));
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectScriptingObject ()
|
||||
~CommandObjectScriptingObject () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
IsRemovable () const
|
||||
bool
|
||||
IsRemovable () const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -1493,8 +1488,8 @@ public:
|
||||
return m_synchro;
|
||||
}
|
||||
|
||||
virtual const char *
|
||||
GetHelp ()
|
||||
const char *
|
||||
GetHelp () override
|
||||
{
|
||||
if (!m_fetched_help_short)
|
||||
{
|
||||
@ -1510,8 +1505,8 @@ public:
|
||||
return CommandObjectRaw::GetHelp();
|
||||
}
|
||||
|
||||
virtual const char *
|
||||
GetHelpLong ()
|
||||
const char *
|
||||
GetHelpLong () override
|
||||
{
|
||||
if (!m_fetched_help_long)
|
||||
{
|
||||
@ -1528,8 +1523,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result) override
|
||||
{
|
||||
ScriptInterpreter* scripter = m_interpreter.GetScriptInterpreter();
|
||||
|
||||
@ -1592,11 +1587,11 @@ public:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsScriptImport ()
|
||||
~CommandObjectCommandsScriptImport () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -1604,7 +1599,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -1620,8 +1615,8 @@ public:
|
||||
return matches.GetSize();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1637,11 +1632,10 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions (){}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1660,13 +1654,13 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_allow_reload = true;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1681,7 +1675,7 @@ protected:
|
||||
};
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
if (m_interpreter.GetDebugger().GetScriptLanguage() != lldb::eScriptLanguagePython)
|
||||
{
|
||||
@ -1772,12 +1766,12 @@ public:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsScriptAdd ()
|
||||
~CommandObjectCommandsScriptAdd () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1797,11 +1791,10 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions (){}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1834,7 +1827,7 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_class_name.clear();
|
||||
m_funct_name.clear();
|
||||
@ -1843,7 +1836,7 @@ protected:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1860,8 +1853,8 @@ protected:
|
||||
ScriptedCommandSynchronicity m_synchronicity;
|
||||
};
|
||||
|
||||
virtual void
|
||||
IOHandlerActivated (IOHandler &io_handler)
|
||||
void
|
||||
IOHandlerActivated (IOHandler &io_handler) override
|
||||
{
|
||||
StreamFileSP output_sp(io_handler.GetOutputStreamFile());
|
||||
if (output_sp)
|
||||
@ -1872,8 +1865,8 @@ protected:
|
||||
}
|
||||
|
||||
|
||||
virtual void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &data)
|
||||
void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &data) override
|
||||
{
|
||||
StreamFileSP error_sp = io_handler.GetErrorStreamFile();
|
||||
|
||||
@ -1935,7 +1928,7 @@ protected:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
|
||||
if (m_interpreter.GetDebugger().GetScriptLanguage() != lldb::eScriptLanguagePython)
|
||||
@ -2064,12 +2057,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectCommandsScriptList ()
|
||||
~CommandObjectCommandsScriptList () override
|
||||
{
|
||||
}
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
|
||||
m_interpreter.GetHelp(result,
|
||||
@ -2100,13 +2093,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectCommandsScriptClear ()
|
||||
~CommandObjectCommandsScriptClear () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
|
||||
m_interpreter.RemoveAllUser();
|
||||
@ -2144,13 +2137,13 @@ public:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
~CommandObjectCommandsScriptDelete ()
|
||||
~CommandObjectCommandsScriptDelete () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
|
||||
size_t argc = command.GetArgumentCount();
|
||||
@ -2202,7 +2195,7 @@ public:
|
||||
LoadSubCommand ("import", CommandObjectSP (new CommandObjectCommandsScriptImport (interpreter)));
|
||||
}
|
||||
|
||||
~CommandObjectMultiwordCommandsScript ()
|
||||
~CommandObjectMultiwordCommandsScript () override
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -71,13 +71,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectFrameInfo ()
|
||||
~CommandObjectFrameInfo () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
m_exe_ctx.GetFrameRef().DumpUsingSettingsFormat (&result.GetOutputStream());
|
||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||
@ -105,13 +105,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
bool success = false;
|
||||
@ -133,13 +132,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
relative_frame_offset = INT32_MIN;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -175,13 +174,12 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectFrameSelect ()
|
||||
~CommandObjectFrameSelect () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -189,7 +187,7 @@ public:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
// No need to check "thread" for validity as eCommandRequiresThread ensures it is valid
|
||||
Thread *thread = m_exe_ctx.GetThreadPtr();
|
||||
@ -342,20 +340,18 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectFrameVariable ()
|
||||
~CommandObjectFrameVariable () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -363,7 +359,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
// Arguments are the standard source file completer.
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
@ -381,8 +377,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
// No need to check "frame" for validity as eCommandRequiresFrame ensures it is valid
|
||||
StackFrame *frame = m_exe_ctx.GetFramePtr();
|
||||
|
@ -77,13 +77,12 @@ public:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectLogEnable()
|
||||
~CommandObjectLogEnable() override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -122,13 +121,12 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -154,14 +152,14 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
log_file.Clear();
|
||||
log_options = 0;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -177,9 +175,9 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
if (args.GetArgumentCount() < 2)
|
||||
{
|
||||
@ -260,15 +258,14 @@ public:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectLogDisable()
|
||||
~CommandObjectLogDisable() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = args.GetArgumentCount();
|
||||
if (argc == 0)
|
||||
@ -332,15 +329,14 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectLogList()
|
||||
~CommandObjectLogList() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = args.GetArgumentCount();
|
||||
if (argc == 0)
|
||||
@ -396,15 +392,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectLogTimer()
|
||||
~CommandObjectLogTimer() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = args.GetArgumentCount();
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
|
@ -67,28 +67,27 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~OptionGroupReadMemory ()
|
||||
~OptionGroupReadMemory () override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
virtual uint32_t
|
||||
GetNumDefinitions ()
|
||||
uint32_t
|
||||
GetNumDefinitions () override
|
||||
{
|
||||
return sizeof (g_option_table) / sizeof (OptionDefinition);
|
||||
}
|
||||
|
||||
virtual const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
const OptionDefinition*
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
|
||||
virtual Error
|
||||
Error
|
||||
SetOptionValue (CommandInterpreter &interpreter,
|
||||
uint32_t option_idx,
|
||||
const char *option_arg)
|
||||
const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_option_table[option_idx].short_option;
|
||||
@ -120,8 +119,8 @@ public:
|
||||
return error;
|
||||
}
|
||||
|
||||
virtual void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter)
|
||||
void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter) override
|
||||
{
|
||||
m_num_per_line.Clear();
|
||||
m_output_as_binary = false;
|
||||
@ -367,25 +366,25 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectMemoryRead ()
|
||||
~CommandObjectMemoryRead () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
virtual const char *GetRepeatCommand (Args ¤t_command_args, uint32_t index)
|
||||
const char *
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index) override
|
||||
{
|
||||
return m_cmd_name.c_str();
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
// No need to check "target" for validity as eCommandRequiresTarget ensures it is valid
|
||||
Target *target = m_exe_ctx.GetTargetPtr();
|
||||
@ -966,27 +965,26 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~OptionGroupFindMemory ()
|
||||
~OptionGroupFindMemory () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual uint32_t
|
||||
GetNumDefinitions ()
|
||||
uint32_t
|
||||
GetNumDefinitions () override
|
||||
{
|
||||
return sizeof (g_memory_find_option_table) / sizeof (OptionDefinition);
|
||||
}
|
||||
|
||||
virtual const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
const OptionDefinition*
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_memory_find_option_table;
|
||||
}
|
||||
|
||||
virtual Error
|
||||
Error
|
||||
SetOptionValue (CommandInterpreter &interpreter,
|
||||
uint32_t option_idx,
|
||||
const char *option_arg)
|
||||
const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_memory_find_option_table[option_idx].short_option;
|
||||
@ -1018,8 +1016,8 @@ public:
|
||||
return error;
|
||||
}
|
||||
|
||||
virtual void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter)
|
||||
void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter) override
|
||||
{
|
||||
m_expr.Clear();
|
||||
m_string.Clear();
|
||||
@ -1068,20 +1066,19 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectMemoryFind ()
|
||||
~CommandObjectMemoryFind () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
// No need to check "process" for validity as eCommandRequiresProcess ensures it is valid
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
@ -1258,27 +1255,26 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~OptionGroupWriteMemory ()
|
||||
~OptionGroupWriteMemory () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual uint32_t
|
||||
GetNumDefinitions ()
|
||||
uint32_t
|
||||
GetNumDefinitions () override
|
||||
{
|
||||
return sizeof (g_memory_write_option_table) / sizeof (OptionDefinition);
|
||||
}
|
||||
|
||||
virtual const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
const OptionDefinition*
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_memory_write_option_table;
|
||||
}
|
||||
|
||||
virtual Error
|
||||
Error
|
||||
SetOptionValue (CommandInterpreter &interpreter,
|
||||
uint32_t option_idx,
|
||||
const char *option_arg)
|
||||
const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_memory_write_option_table[option_idx].short_option;
|
||||
@ -1312,8 +1308,8 @@ public:
|
||||
return error;
|
||||
}
|
||||
|
||||
virtual void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter)
|
||||
void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter) override
|
||||
{
|
||||
m_infile.Clear();
|
||||
m_infile_offset = 0;
|
||||
@ -1363,13 +1359,12 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectMemoryWrite ()
|
||||
~CommandObjectMemoryWrite () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
@ -1402,8 +1397,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
// No need to check "process" for validity as eCommandRequiresProcess ensures it is valid
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
@ -1711,19 +1706,19 @@ public:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectMemoryHistory ()
|
||||
~CommandObjectMemoryHistory () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual const char *GetRepeatCommand (Args ¤t_command_args, uint32_t index)
|
||||
const char *
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index) override
|
||||
{
|
||||
return m_cmd_name.c_str();
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = command.GetArgumentCount();
|
||||
|
||||
|
@ -86,15 +86,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~OptionPermissions ()
|
||||
~OptionPermissions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual lldb_private::Error
|
||||
lldb_private::Error
|
||||
SetOptionValue (CommandInterpreter &interpreter,
|
||||
uint32_t option_idx,
|
||||
const char *option_arg)
|
||||
const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
char short_option = (char) GetDefinitions()[option_idx].short_option;
|
||||
@ -155,19 +154,19 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter)
|
||||
OptionParsingStarting (CommandInterpreter &interpreter) override
|
||||
{
|
||||
m_permissions = 0;
|
||||
}
|
||||
|
||||
virtual uint32_t
|
||||
GetNumDefinitions ()
|
||||
uint32_t
|
||||
GetNumDefinitions () override
|
||||
{
|
||||
return llvm::array_lengthof(g_permissions_options);
|
||||
}
|
||||
|
||||
const lldb_private::OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_permissions_options;
|
||||
}
|
||||
@ -198,19 +197,18 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformSelect ()
|
||||
~CommandObjectPlatformSelect () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -225,15 +223,15 @@ public:
|
||||
return matches.GetSize();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
if (args.GetArgumentCount() == 1)
|
||||
{
|
||||
@ -291,14 +289,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformList ()
|
||||
~CommandObjectPlatformList () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &ostrm = result.GetOutputStream();
|
||||
ostrm.Printf("Available platforms:\n");
|
||||
@ -346,14 +343,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformStatus ()
|
||||
~CommandObjectPlatformStatus () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &ostrm = result.GetOutputStream();
|
||||
|
||||
@ -396,14 +392,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformConnect ()
|
||||
~CommandObjectPlatformConnect () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &ostrm = result.GetOutputStream();
|
||||
|
||||
@ -430,8 +425,8 @@ protected:
|
||||
return result.Succeeded();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
OptionGroupOptions* m_platform_options = NULL;
|
||||
@ -461,14 +456,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformDisconnect ()
|
||||
~CommandObjectPlatformDisconnect () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -543,14 +537,13 @@ public:
|
||||
m_options.Append (&m_option_working_dir, LLDB_OPT_SET_ALL, LLDB_OPT_SET_1);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformSettings ()
|
||||
~CommandObjectPlatformSettings () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -566,8 +559,8 @@ protected:
|
||||
return result.Succeeded();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
if (m_options.DidFinalize() == false)
|
||||
m_options.Finalize();
|
||||
@ -597,13 +590,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformMkDir ()
|
||||
~CommandObjectPlatformMkDir () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -635,8 +627,8 @@ public:
|
||||
return result.Succeeded();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
if (m_options.DidFinalize() == false)
|
||||
{
|
||||
@ -665,13 +657,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformFOpen ()
|
||||
~CommandObjectPlatformFOpen () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -708,8 +699,8 @@ public:
|
||||
}
|
||||
return result.Succeeded();
|
||||
}
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
if (m_options.DidFinalize() == false)
|
||||
{
|
||||
@ -736,13 +727,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformFClose ()
|
||||
~CommandObjectPlatformFClose () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -788,13 +778,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformFRead ()
|
||||
~CommandObjectPlatformFRead () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -816,8 +805,8 @@ public:
|
||||
}
|
||||
return result.Succeeded();
|
||||
}
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -832,13 +821,12 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
char short_option = (char) m_getopt_table[option_idx].val;
|
||||
@ -866,14 +854,14 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_offset = 0;
|
||||
m_count = 1;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -914,13 +902,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformFWrite ()
|
||||
~CommandObjectPlatformFWrite () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -944,8 +931,8 @@ public:
|
||||
}
|
||||
return result.Succeeded();
|
||||
}
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -960,13 +947,12 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
char short_option = (char) m_getopt_table[option_idx].val;
|
||||
@ -992,14 +978,14 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_offset = 0;
|
||||
m_data.clear();
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1041,8 +1027,7 @@ public:
|
||||
LoadSubCommand ("write", CommandObjectSP (new CommandObjectPlatformFWrite (interpreter)));
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformFile ()
|
||||
~CommandObjectPlatformFile () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -1094,13 +1079,12 @@ R"(Examples:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformGetFile ()
|
||||
~CommandObjectPlatformGetFile () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
// If the number of arguments is incorrect, issue an error message.
|
||||
if (args.GetArgumentCount() != 2)
|
||||
@ -1172,13 +1156,12 @@ R"(Examples:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformGetSize ()
|
||||
~CommandObjectPlatformGetSize () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
// If the number of arguments is incorrect, issue an error message.
|
||||
if (args.GetArgumentCount() != 1)
|
||||
@ -1228,13 +1211,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformPutFile ()
|
||||
~CommandObjectPlatformPutFile () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
const char* src = args.GetArgumentAtIndex(0);
|
||||
const char* dst = args.GetArgumentAtIndex(1);
|
||||
@ -1281,20 +1263,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformProcessLaunch ()
|
||||
~CommandObjectPlatformProcessLaunch () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
PlatformSP platform_sp;
|
||||
@ -1398,20 +1379,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformProcessList ()
|
||||
~CommandObjectPlatformProcessList () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
PlatformSP platform_sp;
|
||||
@ -1524,13 +1504,12 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1620,7 +1599,7 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
match_info.Clear();
|
||||
show_args = false;
|
||||
@ -1628,7 +1607,7 @@ protected:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1698,14 +1677,13 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformProcessInfo ()
|
||||
~CommandObjectPlatformProcessInfo () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
PlatformSP platform_sp;
|
||||
@ -1793,12 +1771,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
char short_option = (char) m_getopt_table[option_idx].val;
|
||||
@ -1839,18 +1817,18 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
attach_info.Clear();
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
bool
|
||||
HandleOptionArgumentCompletion (Args &input,
|
||||
int cursor_index,
|
||||
int char_pos,
|
||||
@ -1859,7 +1837,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
int opt_arg_pos = opt_element_vector[opt_element_index].opt_arg_pos;
|
||||
int opt_defs_index = opt_element_vector[opt_element_index].opt_defs_index;
|
||||
@ -1921,13 +1899,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectPlatformProcessAttach ()
|
||||
~CommandObjectPlatformProcessAttach () override
|
||||
{
|
||||
}
|
||||
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
if (platform_sp)
|
||||
@ -1957,7 +1935,7 @@ public:
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1998,8 +1976,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformProcess ()
|
||||
~CommandObjectPlatformProcess () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -2027,8 +2004,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -2038,15 +2014,15 @@ public:
|
||||
return 1;
|
||||
}
|
||||
|
||||
virtual const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
const OptionDefinition*
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
|
||||
virtual Error
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx,
|
||||
const char *option_value)
|
||||
const char *option_value) override
|
||||
{
|
||||
Error error;
|
||||
|
||||
@ -2070,8 +2046,8 @@ public:
|
||||
return error;
|
||||
}
|
||||
|
||||
virtual void
|
||||
OptionParsingStarting ()
|
||||
void
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -2091,20 +2067,18 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformShell ()
|
||||
~CommandObjectPlatformShell () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *raw_command_line, CommandReturnObject &result) override
|
||||
{
|
||||
m_options.NotifyOptionParsingStarting();
|
||||
|
||||
@ -2218,13 +2192,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectPlatformInstall ()
|
||||
~CommandObjectPlatformInstall () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
if (args.GetArgumentCount() != 2)
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
~CommandObjectPluginLoad ()
|
||||
~CommandObjectPluginLoad () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -71,7 +71,7 @@ public:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
size_t argc = command.GetArgumentCount();
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
CommandObjectParsed (interpreter, name, help, syntax, flags),
|
||||
m_new_process_action (new_process_action) {}
|
||||
|
||||
virtual ~CommandObjectProcessLaunchOrAttach () {}
|
||||
~CommandObjectProcessLaunchOrAttach () override {}
|
||||
protected:
|
||||
bool
|
||||
StopProcessIfNecessary (Process *process, StateType &state, CommandReturnObject &result)
|
||||
@ -142,11 +142,11 @@ public:
|
||||
}
|
||||
|
||||
|
||||
~CommandObjectProcessLaunch ()
|
||||
~CommandObjectProcessLaunch () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -154,7 +154,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -171,12 +171,13 @@ public:
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
virtual const char *GetRepeatCommand (Args ¤t_command_args, uint32_t index)
|
||||
const char *
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index) override
|
||||
{
|
||||
// No repeat for "process launch"...
|
||||
return "";
|
||||
@ -184,7 +185,7 @@ public:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& launch_args, CommandReturnObject &result)
|
||||
DoExecute (Args& launch_args, CommandReturnObject &result) override
|
||||
{
|
||||
Debugger &debugger = m_interpreter.GetDebugger();
|
||||
Target *target = debugger.GetSelectedTarget().get();
|
||||
@ -338,12 +339,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -392,18 +393,18 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
attach_info.Clear();
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
bool
|
||||
HandleOptionArgumentCompletion (Args &input,
|
||||
int cursor_index,
|
||||
int char_pos,
|
||||
@ -412,7 +413,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
int opt_arg_pos = opt_element_vector[opt_element_index].opt_arg_pos;
|
||||
int opt_defs_index = opt_element_vector[opt_element_index].opt_defs_index;
|
||||
@ -476,20 +477,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessAttach ()
|
||||
~CommandObjectProcessAttach () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||
|
||||
@ -646,7 +646,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
~CommandObjectProcessContinue ()
|
||||
~CommandObjectProcessContinue () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -663,12 +663,12 @@ protected:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -689,13 +689,13 @@ protected:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_ignore = 0;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -708,7 +708,7 @@ protected:
|
||||
};
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
bool synchronous_execution = m_interpreter.GetSynchronous ();
|
||||
@ -807,7 +807,7 @@ protected:
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -842,12 +842,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -876,13 +876,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_keep_stopped = eLazyBoolCalculate;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -907,12 +907,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessDetach ()
|
||||
~CommandObjectProcessDetach () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -920,7 +920,7 @@ public:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
// FIXME: This will be a Command Option:
|
||||
@ -982,12 +982,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1006,13 +1006,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
plugin_name.clear();
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1036,21 +1036,20 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessConnect ()
|
||||
~CommandObjectProcessConnect () override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
|
||||
TargetSP target_sp (m_interpreter.GetDebugger().GetSelectedTarget());
|
||||
@ -1152,12 +1151,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessPlugin ()
|
||||
~CommandObjectProcessPlugin () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual CommandObject *
|
||||
GetProxyCommandObject()
|
||||
CommandObject *
|
||||
GetProxyCommandObject() override
|
||||
{
|
||||
Process *process = m_interpreter.GetExecutionContext().GetProcessPtr();
|
||||
if (process)
|
||||
@ -1188,14 +1187,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessLoad ()
|
||||
~CommandObjectProcessLoad () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
|
||||
@ -1245,14 +1243,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessUnload ()
|
||||
~CommandObjectProcessUnload () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
|
||||
@ -1318,14 +1315,13 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectProcessSignal ()
|
||||
~CommandObjectProcessSignal () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
|
||||
@ -1390,14 +1386,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessInterrupt ()
|
||||
~CommandObjectProcessInterrupt () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
if (process == NULL)
|
||||
@ -1452,14 +1447,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessKill ()
|
||||
~CommandObjectProcessKill () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
if (process == NULL)
|
||||
@ -1513,14 +1507,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessSaveCore ()
|
||||
~CommandObjectProcessSaveCore () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
ProcessSP process_sp = m_exe_ctx.GetProcessSP();
|
||||
if (process_sp)
|
||||
@ -1575,13 +1569,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectProcessStatus()
|
||||
~CommandObjectProcessStatus() override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &strm = result.GetOutputStream();
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
@ -1620,12 +1614,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1649,7 +1643,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
stop.clear();
|
||||
notify.clear();
|
||||
@ -1657,7 +1651,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1694,12 +1688,12 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectProcessHandle ()
|
||||
~CommandObjectProcessHandle () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1781,7 +1775,7 @@ public:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args &signal_args, CommandReturnObject &result)
|
||||
DoExecute (Args &signal_args, CommandReturnObject &result) override
|
||||
{
|
||||
TargetSP target_sp = m_interpreter.GetDebugger().GetSelectedTarget();
|
||||
|
||||
|
@ -74,13 +74,12 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectRegisterRead ()
|
||||
~CommandObjectRegisterRead () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
@ -170,8 +169,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &strm = result.GetOutputStream();
|
||||
RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext ();
|
||||
@ -271,33 +270,32 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
virtual uint32_t
|
||||
GetNumDefinitions ();
|
||||
uint32_t
|
||||
GetNumDefinitions () override;
|
||||
|
||||
virtual const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
const OptionDefinition*
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
|
||||
virtual void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter)
|
||||
void
|
||||
OptionParsingStarting (CommandInterpreter &interpreter) override
|
||||
{
|
||||
set_indexes.Clear();
|
||||
dump_all_sets.Clear();
|
||||
alternate_name.Clear();
|
||||
}
|
||||
|
||||
virtual Error
|
||||
Error
|
||||
SetOptionValue (CommandInterpreter &interpreter,
|
||||
uint32_t option_idx,
|
||||
const char *option_value)
|
||||
const char *option_value) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_option_table[option_idx].short_option;
|
||||
@ -404,14 +402,13 @@ public:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectRegisterWrite ()
|
||||
~CommandObjectRegisterWrite () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute(Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute(Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
DataExtractor reg_data;
|
||||
RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext ();
|
||||
|
@ -83,15 +83,14 @@ insert-before or insert-after."
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsSet () {}
|
||||
~CommandObjectSettingsSet () override {}
|
||||
|
||||
// Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
|
||||
virtual bool
|
||||
WantsCompletion() { return true; }
|
||||
bool
|
||||
WantsCompletion() override { return true; }
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -106,11 +105,10 @@ insert-before or insert-after."
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -129,13 +127,13 @@ insert-before or insert-after."
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_global = false;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -149,7 +147,7 @@ insert-before or insert-after."
|
||||
bool m_global;
|
||||
};
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -157,7 +155,7 @@ insert-before or insert-after."
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -215,8 +213,8 @@ insert-before or insert-after."
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
Args cmd_args(command);
|
||||
|
||||
@ -321,11 +319,10 @@ public:
|
||||
m_arguments.push_back (arg1);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsShow () {}
|
||||
~CommandObjectSettingsShow () override {}
|
||||
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -333,7 +330,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -349,8 +346,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||
|
||||
@ -414,10 +411,9 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsList () {}
|
||||
~CommandObjectSettingsList () override {}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -425,7 +421,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -441,8 +437,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||
|
||||
@ -521,10 +517,9 @@ public:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsRemove () {}
|
||||
~CommandObjectSettingsRemove () override {}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -532,7 +527,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -551,8 +546,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
|
||||
@ -652,14 +647,13 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsReplace () {}
|
||||
~CommandObjectSettingsReplace () override {}
|
||||
|
||||
// Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
|
||||
virtual bool
|
||||
WantsCompletion() { return true; }
|
||||
bool
|
||||
WantsCompletion() override { return true; }
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -667,7 +661,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -686,8 +680,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
|
||||
@ -773,14 +767,13 @@ public:
|
||||
m_arguments.push_back (arg3);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsInsertBefore () {}
|
||||
~CommandObjectSettingsInsertBefore () override {}
|
||||
|
||||
// Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
|
||||
virtual bool
|
||||
WantsCompletion() { return true; }
|
||||
bool
|
||||
WantsCompletion() override { return true; }
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -788,7 +781,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -807,8 +800,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
|
||||
@ -897,14 +890,13 @@ public:
|
||||
m_arguments.push_back (arg3);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsInsertAfter () {}
|
||||
~CommandObjectSettingsInsertAfter () override {}
|
||||
|
||||
// Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
|
||||
virtual bool
|
||||
WantsCompletion() { return true; }
|
||||
bool
|
||||
WantsCompletion() override { return true; }
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -912,7 +904,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -931,8 +923,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
|
||||
@ -1011,14 +1003,13 @@ public:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsAppend () {}
|
||||
~CommandObjectSettingsAppend () override {}
|
||||
|
||||
// Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
|
||||
virtual bool
|
||||
WantsCompletion() { return true; }
|
||||
bool
|
||||
WantsCompletion() override { return true; }
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -1026,7 +1017,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -1045,8 +1036,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
Args cmd_args(command);
|
||||
@ -1117,10 +1108,9 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectSettingsClear () {}
|
||||
~CommandObjectSettingsClear () override {}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -1128,7 +1118,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex (cursor_index), cursor_char_position);
|
||||
|
||||
@ -1147,8 +1137,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
const size_t argc = command.GetArgumentCount ();
|
||||
|
@ -49,12 +49,12 @@ class CommandObjectSourceInfo : public CommandObjectParsed
|
||||
{
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_option_table[option_idx].short_option;
|
||||
@ -79,7 +79,7 @@ class CommandObjectSourceInfo : public CommandObjectParsed
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
file_spec.Clear();
|
||||
file_name.clear();
|
||||
@ -87,7 +87,7 @@ class CommandObjectSourceInfo : public CommandObjectParsed
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -110,20 +110,20 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectSourceInfo ()
|
||||
~CommandObjectSourceInfo () override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
result.AppendError ("Not yet implemented");
|
||||
result.SetStatus (eReturnStatusFailed);
|
||||
@ -157,12 +157,12 @@ class CommandObjectSourceList : public CommandObjectParsed
|
||||
{
|
||||
}
|
||||
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = g_option_table[option_idx].short_option;
|
||||
@ -213,7 +213,7 @@ class CommandObjectSourceList : public CommandObjectParsed
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
file_spec.Clear();
|
||||
file_name.clear();
|
||||
@ -227,7 +227,7 @@ class CommandObjectSourceList : public CommandObjectParsed
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -256,19 +256,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectSourceList ()
|
||||
~CommandObjectSourceList () override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
virtual const char *
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index)
|
||||
const char *
|
||||
GetRepeatCommand (Args ¤t_command_args, uint32_t index) override
|
||||
{
|
||||
// This is kind of gross, but the command hasn't been parsed yet so we can't look at the option
|
||||
// values for this invocation... I have to scan the arguments directly.
|
||||
@ -507,7 +507,7 @@ protected:
|
||||
}
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = command.GetArgumentCount();
|
||||
|
||||
|
@ -187,17 +187,17 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
~CommandObjectTargetCreate ()
|
||||
~CommandObjectTargetCreate () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -205,7 +205,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -223,7 +223,7 @@ public:
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = command.GetArgumentCount();
|
||||
FileSpec core_file (m_core_file.GetOptionValue().GetCurrentValue());
|
||||
@ -477,14 +477,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetList ()
|
||||
~CommandObjectTargetList () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
if (args.GetArgumentCount() == 0)
|
||||
{
|
||||
@ -525,14 +524,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetSelect ()
|
||||
~CommandObjectTargetSelect () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
if (args.GetArgumentCount() == 1)
|
||||
{
|
||||
@ -622,20 +620,19 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetDelete ()
|
||||
~CommandObjectTargetDelete () override
|
||||
{
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
const size_t argc = args.GetArgumentCount();
|
||||
std::vector<TargetSP> delete_target_list;
|
||||
@ -777,8 +774,7 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetVariable ()
|
||||
~CommandObjectTargetVariable () override
|
||||
{
|
||||
}
|
||||
|
||||
@ -850,7 +846,7 @@ public:
|
||||
}
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
@ -896,8 +892,8 @@ protected:
|
||||
}
|
||||
|
||||
}
|
||||
virtual bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_exe_ctx.GetTargetPtr();
|
||||
const size_t argc = args.GetArgumentCount();
|
||||
@ -1134,14 +1130,13 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectTargetModulesSearchPathsAdd ()
|
||||
~CommandObjectTargetModulesSearchPathsAdd () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target)
|
||||
@ -1207,14 +1202,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectTargetModulesSearchPathsClear ()
|
||||
~CommandObjectTargetModulesSearchPathsClear () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target)
|
||||
@ -1277,14 +1271,13 @@ public:
|
||||
m_arguments.push_back (arg2);
|
||||
}
|
||||
|
||||
~CommandObjectTargetModulesSearchPathsInsert ()
|
||||
~CommandObjectTargetModulesSearchPathsInsert () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target)
|
||||
@ -1366,14 +1359,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectTargetModulesSearchPathsList ()
|
||||
~CommandObjectTargetModulesSearchPathsList () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target)
|
||||
@ -1423,14 +1415,13 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
~CommandObjectTargetModulesSearchPathsQuery ()
|
||||
~CommandObjectTargetModulesSearchPathsQuery () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target)
|
||||
@ -2062,12 +2053,11 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesModuleAutoComplete ()
|
||||
~CommandObjectTargetModulesModuleAutoComplete () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -2075,7 +2065,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
// Arguments are the standard module completer.
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
@ -2124,12 +2114,11 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesSourceFileAutoComplete ()
|
||||
~CommandObjectTargetModulesSourceFileAutoComplete () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -2137,7 +2126,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
// Arguments are the standard source file completer.
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
@ -2171,13 +2160,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesDumpSymtab ()
|
||||
~CommandObjectTargetModulesDumpSymtab () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -2191,13 +2179,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -2220,13 +2207,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_sort_order = eSortOrderNone;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -2238,9 +2225,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -2365,15 +2351,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesDumpSections ()
|
||||
~CommandObjectTargetModulesDumpSections () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -2471,15 +2455,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesDumpSymfile ()
|
||||
~CommandObjectTargetModulesDumpSymfile () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -2574,15 +2556,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesDumpLineTable ()
|
||||
~CommandObjectTargetModulesDumpLineTable () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_exe_ctx.GetTargetPtr();
|
||||
uint32_t total_num_dumped = 0;
|
||||
@ -2663,8 +2643,7 @@ public:
|
||||
LoadSubCommand ("line-table", CommandObjectSP (new CommandObjectTargetModulesDumpLineTable (interpreter)));
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesDump()
|
||||
~CommandObjectTargetModulesDump() override
|
||||
{
|
||||
}
|
||||
};
|
||||
@ -2685,18 +2664,17 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesAdd ()
|
||||
~CommandObjectTargetModulesAdd () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -2704,7 +2682,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -2725,9 +2703,8 @@ protected:
|
||||
OptionGroupUUID m_uuid_option_group;
|
||||
OptionGroupFile m_symbol_file;
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -2888,21 +2865,19 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesLoad ()
|
||||
~CommandObjectTargetModulesLoad () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -3145,13 +3120,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
|
||||
@ -3176,7 +3150,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_format_array.clear();
|
||||
m_use_global_module_list = false;
|
||||
@ -3184,7 +3158,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -3209,22 +3183,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesList ()
|
||||
~CommandObjectTargetModulesList () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
const bool use_global_module_list = m_options.m_use_global_module_list;
|
||||
@ -3590,13 +3561,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
|
||||
@ -3631,7 +3601,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_type = eLookupTypeInvalid;
|
||||
m_str.clear();
|
||||
@ -3639,7 +3609,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -3668,22 +3638,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesShowUnwind ()
|
||||
~CommandObjectTargetModulesShowUnwind () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_exe_ctx.GetTargetPtr();
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
@ -3905,13 +3872,12 @@ public:
|
||||
OptionParsingStarting();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
|
||||
@ -3988,7 +3954,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_type = eLookupTypeInvalid;
|
||||
m_str.clear();
|
||||
@ -4003,7 +3969,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -4045,13 +4011,12 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetModulesLookup ()
|
||||
~CommandObjectTargetModulesLookup () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -4205,9 +4170,8 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -4353,7 +4317,7 @@ public:
|
||||
LoadSubCommand ("query", CommandObjectSP (new CommandObjectTargetModulesSearchPathsQuery (interpreter)));
|
||||
}
|
||||
|
||||
~CommandObjectTargetModulesImageSearchPaths()
|
||||
~CommandObjectTargetModulesImageSearchPaths() override
|
||||
{
|
||||
}
|
||||
};
|
||||
@ -4387,8 +4351,8 @@ public:
|
||||
LoadSubCommand ("show-unwind", CommandObjectSP (new CommandObjectTargetModulesShowUnwind (interpreter)));
|
||||
|
||||
}
|
||||
virtual
|
||||
~CommandObjectTargetModules()
|
||||
|
||||
~CommandObjectTargetModules() override
|
||||
{
|
||||
}
|
||||
|
||||
@ -4420,12 +4384,11 @@ public:
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectTargetSymbolsAdd ()
|
||||
~CommandObjectTargetSymbolsAdd () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual int
|
||||
int
|
||||
HandleArgumentCompletion (Args &input,
|
||||
int &cursor_index,
|
||||
int &cursor_char_position,
|
||||
@ -4433,7 +4396,7 @@ public:
|
||||
int match_start_point,
|
||||
int max_return_elements,
|
||||
bool &word_complete,
|
||||
StringList &matches)
|
||||
StringList &matches) override
|
||||
{
|
||||
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
|
||||
completion_str.erase (cursor_char_position);
|
||||
@ -4449,8 +4412,8 @@ public:
|
||||
return matches.GetSize();
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
@ -4628,9 +4591,8 @@ protected:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& args,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_exe_ctx.GetTargetPtr();
|
||||
result.SetStatus (eReturnStatusFailed);
|
||||
@ -4848,8 +4810,8 @@ public:
|
||||
LoadSubCommand ("add", CommandObjectSP (new CommandObjectTargetSymbolsAdd (interpreter)));
|
||||
|
||||
}
|
||||
virtual
|
||||
~CommandObjectTargetSymbols()
|
||||
|
||||
~CommandObjectTargetSymbols() override
|
||||
{
|
||||
}
|
||||
|
||||
@ -4888,16 +4850,16 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -4984,7 +4946,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_class_name.clear();
|
||||
m_function_name.clear();
|
||||
@ -5029,7 +4991,7 @@ public:
|
||||
};
|
||||
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -5044,13 +5006,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectTargetStopHookAdd ()
|
||||
~CommandObjectTargetStopHookAdd () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual void
|
||||
IOHandlerActivated (IOHandler &io_handler)
|
||||
void
|
||||
IOHandlerActivated (IOHandler &io_handler) override
|
||||
{
|
||||
StreamFileSP output_sp(io_handler.GetOutputStreamFile());
|
||||
if (output_sp)
|
||||
@ -5060,8 +5022,8 @@ protected:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &line)
|
||||
void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &line) override
|
||||
{
|
||||
if (m_stop_hook_sp)
|
||||
{
|
||||
@ -5093,7 +5055,7 @@ protected:
|
||||
}
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
m_stop_hook_sp.reset();
|
||||
|
||||
@ -5241,13 +5203,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectTargetStopHookDelete ()
|
||||
~CommandObjectTargetStopHookDelete () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget();
|
||||
if (target)
|
||||
@ -5317,13 +5279,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectTargetStopHookEnableDisable ()
|
||||
~CommandObjectTargetStopHookEnableDisable () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget();
|
||||
if (target)
|
||||
@ -5387,13 +5349,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectTargetStopHookList ()
|
||||
~CommandObjectTargetStopHookList () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = GetSelectedOrDummyTarget();
|
||||
if (!target)
|
||||
@ -5453,7 +5415,7 @@ public:
|
||||
LoadSubCommand ("list", CommandObjectSP (new CommandObjectTargetStopHookList (interpreter)));
|
||||
}
|
||||
|
||||
~CommandObjectMultiwordTargetStopHooks()
|
||||
~CommandObjectMultiwordTargetStopHooks() override
|
||||
{
|
||||
}
|
||||
};
|
||||
|
@ -58,9 +58,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~CommandObjectIterateOverThreads() {}
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
~CommandObjectIterateOverThreads() override {}
|
||||
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
result.SetStatus (m_success_return);
|
||||
|
||||
@ -162,13 +163,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -211,7 +211,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_count = UINT32_MAX;
|
||||
m_start = 0;
|
||||
@ -219,7 +219,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -248,12 +248,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectThreadBacktrace()
|
||||
~CommandObjectThreadBacktrace() override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -285,8 +285,8 @@ protected:
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool
|
||||
HandleOneThread (Thread &thread, CommandReturnObject &result)
|
||||
bool
|
||||
HandleOneThread (Thread &thread, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &strm = result.GetOutputStream();
|
||||
|
||||
@ -343,13 +343,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -426,7 +425,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_step_in_avoid_no_debug = eLazyBoolCalculate;
|
||||
m_step_out_avoid_no_debug = eLazyBoolCalculate;
|
||||
@ -444,7 +443,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -493,21 +492,19 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectThreadStepWithTypeAndScope ()
|
||||
~CommandObjectThreadStepWithTypeAndScope () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
bool synchronous_execution = m_interpreter.GetSynchronous();
|
||||
@ -780,13 +777,12 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectThreadContinue ()
|
||||
~CommandObjectThreadContinue () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
bool synchronous_execution = m_interpreter.GetSynchronous ();
|
||||
|
||||
@ -980,13 +976,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1042,7 +1037,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_thread_idx = LLDB_INVALID_THREAD_ID;
|
||||
m_frame_idx = 0;
|
||||
@ -1051,7 +1046,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1093,21 +1088,19 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectThreadUntil ()
|
||||
~CommandObjectThreadUntil () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
bool synchronous_execution = m_interpreter.GetSynchronous ();
|
||||
|
||||
@ -1371,14 +1364,13 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectThreadSelect ()
|
||||
~CommandObjectThreadSelect () override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Process *process = m_exe_ctx.GetProcessPtr();
|
||||
if (process == NULL)
|
||||
@ -1434,13 +1426,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectThreadList()
|
||||
~CommandObjectThreadList() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &strm = result.GetOutputStream();
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
@ -1492,19 +1484,18 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_json_thread = false;
|
||||
m_json_stopinfo = false;
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
Error error;
|
||||
@ -1527,7 +1518,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1538,21 +1529,18 @@ public:
|
||||
static OptionDefinition g_option_table[];
|
||||
};
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectThreadInfo ()
|
||||
~CommandObjectThreadInfo () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool
|
||||
HandleOneThread (Thread &thread, CommandReturnObject &result)
|
||||
bool
|
||||
HandleOneThread (Thread &thread, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &strm = result.GetOutputStream();
|
||||
if (!thread.GetDescription (strm, eDescriptionLevelFull, m_options.m_json_thread, m_options.m_json_stopinfo))
|
||||
@ -1597,13 +1585,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1631,13 +1618,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_from_expression = false;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1651,9 +1638,8 @@ public:
|
||||
// Instance variables to hold the values for command options.
|
||||
};
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1686,17 +1672,14 @@ public:
|
||||
|
||||
}
|
||||
|
||||
~CommandObjectThreadReturn()
|
||||
~CommandObjectThreadReturn() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
bool DoExecute
|
||||
(
|
||||
const char *command,
|
||||
CommandReturnObject &result
|
||||
)
|
||||
bool
|
||||
DoExecute (const char *command, CommandReturnObject &result) override
|
||||
{
|
||||
// I am going to handle this by hand, because I don't want you to have to say:
|
||||
// "thread return -- -5".
|
||||
@ -1810,7 +1793,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_filenames.Clear();
|
||||
m_line_num = 0;
|
||||
@ -1819,13 +1802,12 @@ public:
|
||||
m_force = false;
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
bool success;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -1866,7 +1848,7 @@ public:
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -1880,9 +1862,8 @@ public:
|
||||
static OptionDefinition g_option_table[];
|
||||
};
|
||||
|
||||
virtual
|
||||
Options *
|
||||
GetOptions ()
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -1900,13 +1881,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectThreadJump()
|
||||
~CommandObjectThreadJump() override
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
bool DoExecute (Args& args, CommandReturnObject &result)
|
||||
bool DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext();
|
||||
StackFrame *frame = m_exe_ctx.GetFramePtr();
|
||||
@ -2017,13 +1998,12 @@ public:
|
||||
OptionParsingStarting ();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions ()
|
||||
~CommandOptions () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -2049,14 +2029,14 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_verbose = false;
|
||||
m_internal = false;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -2085,19 +2065,19 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~CommandObjectThreadPlanList ()
|
||||
~CommandObjectThreadPlanList () override
|
||||
{
|
||||
}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
HandleOneThread (Thread &thread, CommandReturnObject &result)
|
||||
bool
|
||||
HandleOneThread (Thread &thread, CommandReturnObject &result) override
|
||||
{
|
||||
Stream &strm = result.GetOutputStream();
|
||||
DescriptionLevel desc_level = eDescriptionLevelFull;
|
||||
@ -2148,10 +2128,10 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual ~CommandObjectThreadPlanDiscard () {}
|
||||
~CommandObjectThreadPlanDiscard () override {}
|
||||
|
||||
bool
|
||||
DoExecute (Args& args, CommandReturnObject &result)
|
||||
DoExecute (Args& args, CommandReturnObject &result) override
|
||||
{
|
||||
Thread *thread = m_exe_ctx.GetThreadPtr();
|
||||
if (args.GetArgumentCount() != 1)
|
||||
@ -2211,7 +2191,7 @@ public:
|
||||
LoadSubCommand ("discard", CommandObjectSP (new CommandObjectThreadPlanDiscard (interpreter)));
|
||||
}
|
||||
|
||||
virtual ~CommandObjectMultiwordThreadPlan () {}
|
||||
~CommandObjectMultiwordThreadPlan () override {}
|
||||
|
||||
|
||||
};
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -178,11 +178,10 @@ public:
|
||||
m_arguments.push_back(arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointList () {}
|
||||
~CommandObjectWatchpointList () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -197,11 +196,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -226,13 +224,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_level = lldb::eDescriptionLevelFull;
|
||||
}
|
||||
|
||||
const OptionDefinition *
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -248,8 +246,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (target == NULL)
|
||||
@ -361,13 +359,12 @@ public:
|
||||
m_arguments.push_back(arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointEnable () {}
|
||||
~CommandObjectWatchpointEnable () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (!CheckTargetForWatchpointOperations(target, result))
|
||||
@ -441,12 +438,11 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointDisable () {}
|
||||
~CommandObjectWatchpointDisable () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (!CheckTargetForWatchpointOperations(target, result))
|
||||
@ -524,12 +520,11 @@ public:
|
||||
m_arguments.push_back(arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointDelete () {}
|
||||
~CommandObjectWatchpointDelete () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (!CheckTargetForWatchpointOperations(target, result))
|
||||
@ -607,11 +602,10 @@ public:
|
||||
m_arguments.push_back(arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointIgnore () {}
|
||||
~CommandObjectWatchpointIgnore () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -626,11 +620,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -653,13 +646,13 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_ignore_count = 0;
|
||||
}
|
||||
|
||||
const OptionDefinition *
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -675,9 +668,9 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (!CheckTargetForWatchpointOperations(target, result))
|
||||
@ -763,11 +756,10 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointModify () {}
|
||||
~CommandObjectWatchpointModify () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
@ -783,11 +775,10 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -810,14 +801,14 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_condition.clear();
|
||||
m_condition_passed = false;
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -833,8 +824,8 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
if (!CheckTargetForWatchpointOperations(target, result))
|
||||
@ -958,11 +949,10 @@ corresponding to the byte size of the data type."
|
||||
m_option_group.Finalize();
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointSetVariable () {}
|
||||
~CommandObjectWatchpointSetVariable () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
@ -983,8 +973,8 @@ protected:
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
StackFrame *frame = m_exe_ctx.GetFramePtr();
|
||||
@ -1169,22 +1159,21 @@ Examples:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointSetExpression () {}
|
||||
~CommandObjectWatchpointSetExpression () override {}
|
||||
|
||||
// Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
|
||||
virtual bool
|
||||
WantsCompletion() { return true; }
|
||||
bool
|
||||
WantsCompletion() override { return true; }
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_option_group;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (const char *raw_command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (const char *raw_command, CommandReturnObject &result) override
|
||||
{
|
||||
m_option_group.NotifyOptionParsingStarting(); // This is a raw command, so notify the option group
|
||||
|
||||
@ -1345,8 +1334,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointSet () {}
|
||||
~CommandObjectWatchpointSet () override {}
|
||||
|
||||
};
|
||||
|
||||
|
@ -169,17 +169,16 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointCommandAdd () {}
|
||||
~CommandObjectWatchpointCommandAdd () override {}
|
||||
|
||||
virtual Options *
|
||||
GetOptions ()
|
||||
Options *
|
||||
GetOptions () override
|
||||
{
|
||||
return &m_options;
|
||||
}
|
||||
|
||||
virtual void
|
||||
IOHandlerActivated (IOHandler &io_handler)
|
||||
void
|
||||
IOHandlerActivated (IOHandler &io_handler) override
|
||||
{
|
||||
StreamFileSP output_sp(io_handler.GetOutputStreamFile());
|
||||
if (output_sp)
|
||||
@ -190,8 +189,8 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
}
|
||||
|
||||
|
||||
virtual void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &line)
|
||||
void
|
||||
IOHandlerInputComplete (IOHandler &io_handler, std::string &line) override
|
||||
{
|
||||
io_handler.SetIsDone(true);
|
||||
|
||||
@ -301,11 +300,10 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
{
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandOptions () {}
|
||||
~CommandOptions () override {}
|
||||
|
||||
virtual Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg)
|
||||
Error
|
||||
SetOptionValue (uint32_t option_idx, const char *option_arg) override
|
||||
{
|
||||
Error error;
|
||||
const int short_option = m_getopt_table[option_idx].val;
|
||||
@ -356,7 +354,7 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
return error;
|
||||
}
|
||||
void
|
||||
OptionParsingStarting ()
|
||||
OptionParsingStarting () override
|
||||
{
|
||||
m_use_commands = true;
|
||||
m_use_script_language = false;
|
||||
@ -369,7 +367,7 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
}
|
||||
|
||||
const OptionDefinition*
|
||||
GetDefinitions ()
|
||||
GetDefinitions () override
|
||||
{
|
||||
return g_option_table;
|
||||
}
|
||||
@ -392,8 +390,8 @@ are no syntax errors may indicate that a function was declared but never called.
|
||||
};
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
|
||||
@ -550,12 +548,11 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointCommandDelete () {}
|
||||
~CommandObjectWatchpointCommandDelete () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command, CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
|
||||
@ -641,13 +638,11 @@ public:
|
||||
m_arguments.push_back (arg);
|
||||
}
|
||||
|
||||
virtual
|
||||
~CommandObjectWatchpointCommandList () {}
|
||||
~CommandObjectWatchpointCommandList () override {}
|
||||
|
||||
protected:
|
||||
virtual bool
|
||||
DoExecute (Args& command,
|
||||
CommandReturnObject &result)
|
||||
bool
|
||||
DoExecute (Args& command, CommandReturnObject &result) override
|
||||
{
|
||||
Target *target = m_interpreter.GetDebugger().GetSelectedTarget().get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user