Change the command 'breakpoint command remove' to 'breakpoint command delete',

to be more consistent with other commands.

llvm-svn: 131848
This commit is contained in:
Caroline Tice
2011-05-22 07:14:46 +00:00
parent f0d59072de
commit 93e0f19f1d
4 changed files with 22 additions and 22 deletions

View File

@@ -520,13 +520,13 @@ CommandObjectBreakpointCommandAdd::GenerateBreakpointCommandCallback
//-------------------------------------------------------------------------
// CommandObjectBreakpointCommandRemove
// CommandObjectBreakpointCommandDelete
//-------------------------------------------------------------------------
CommandObjectBreakpointCommandRemove::CommandObjectBreakpointCommandRemove (CommandInterpreter &interpreter) :
CommandObjectBreakpointCommandDelete::CommandObjectBreakpointCommandDelete (CommandInterpreter &interpreter) :
CommandObject (interpreter,
"remove",
"Remove the set of commands from a breakpoint.",
"delete",
"Delete the set of commands from a breakpoint.",
NULL)
{
CommandArgumentEntry arg;
@@ -543,12 +543,12 @@ CommandObjectBreakpointCommandRemove::CommandObjectBreakpointCommandRemove (Comm
m_arguments.push_back (arg);
}
CommandObjectBreakpointCommandRemove::~CommandObjectBreakpointCommandRemove ()
CommandObjectBreakpointCommandDelete::~CommandObjectBreakpointCommandDelete ()
{
}
bool
CommandObjectBreakpointCommandRemove::Execute
CommandObjectBreakpointCommandDelete::Execute
(
Args& command,
CommandReturnObject &result
@@ -558,7 +558,7 @@ CommandObjectBreakpointCommandRemove::Execute
if (target == NULL)
{
result.AppendError ("There is not a current executable; there are no breakpoints from which to remove commands");
result.AppendError ("There is not a current executable; there are no breakpoints from which to delete commands");
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -568,14 +568,14 @@ CommandObjectBreakpointCommandRemove::Execute
if (num_breakpoints == 0)
{
result.AppendError ("No breakpoints exist to have commands removed");
result.AppendError ("No breakpoints exist to have commands deleted");
result.SetStatus (eReturnStatusFailed);
return false;
}
if (command.GetArgumentCount() == 0)
{
result.AppendError ("No breakpoint specified from which to remove the commands");
result.AppendError ("No breakpoint specified from which to delete the commands");
result.SetStatus (eReturnStatusFailed);
return false;
}
@@ -760,15 +760,15 @@ CommandObjectBreakpointCommand::CommandObjectBreakpointCommand (CommandInterpret
{
bool status;
CommandObjectSP add_command_object (new CommandObjectBreakpointCommandAdd (interpreter));
CommandObjectSP remove_command_object (new CommandObjectBreakpointCommandRemove (interpreter));
CommandObjectSP delete_command_object (new CommandObjectBreakpointCommandDelete (interpreter));
CommandObjectSP list_command_object (new CommandObjectBreakpointCommandList (interpreter));
add_command_object->SetCommandName ("breakpoint command add");
remove_command_object->SetCommandName ("breakpoint command remove");
delete_command_object->SetCommandName ("breakpoint command delete");
list_command_object->SetCommandName ("breakpoint command list");
status = LoadSubCommand ("add", add_command_object);
status = LoadSubCommand ("remove", remove_command_object);
status = LoadSubCommand ("delete", delete_command_object);
status = LoadSubCommand ("list", list_command_object);
}

View File

@@ -130,16 +130,16 @@ private:
};
//-------------------------------------------------------------------------
// CommandObjectBreakpointCommandRemove
// CommandObjectBreakpointCommandDelete
//-------------------------------------------------------------------------
class CommandObjectBreakpointCommandRemove : public CommandObject
class CommandObjectBreakpointCommandDelete : public CommandObject
{
public:
CommandObjectBreakpointCommandRemove (CommandInterpreter &interpreter);
CommandObjectBreakpointCommandDelete (CommandInterpreter &interpreter);
virtual
~CommandObjectBreakpointCommandRemove ();
~CommandObjectBreakpointCommandDelete ();
virtual bool
Execute (Args& command,

View File

@@ -94,7 +94,7 @@ class AbbreviationsTestCase(TestBase):
"Breakpoint commands:",
"print frame" ])
self.runCmd("br co rem 1")
self.runCmd("br co del 1")
self.expect("breakpoint command list 1",
startstr = "Breakpoint 1 does not have an associated command.")

View File

@@ -1,5 +1,5 @@
"""
Test lldb breakpoint command add/list/remove.
Test lldb breakpoint command add/list/delete.
"""
import os, time
@@ -18,13 +18,13 @@ class BreakpointCommandTestCase(TestBase):
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym(self):
"""Test a sequence of breakpoint command add, list, and remove."""
"""Test a sequence of breakpoint command add, list, and delete."""
self.buildDsym()
self.breakpoint_command_sequence()
self.breakpoint_command_script_parameters ()
def test_with_dwarf(self):
"""Test a sequence of breakpoint command add, list, and remove."""
"""Test a sequence of breakpoint command add, list, and delete."""
self.buildDwarf()
self.breakpoint_command_sequence()
self.breakpoint_command_script_parameters ()
@@ -36,7 +36,7 @@ class BreakpointCommandTestCase(TestBase):
self.line = line_number('main.c', '// Set break point at this line.')
def breakpoint_command_sequence(self):
"""Test a sequence of breakpoint command add, list, and remove."""
"""Test a sequence of breakpoint command add, list, and delete."""
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
@@ -98,7 +98,7 @@ class BreakpointCommandTestCase(TestBase):
self.runCmd("process continue")
# Remove the breakpoint command associated with breakpoint 1.
self.runCmd("breakpoint command remove 1")
self.runCmd("breakpoint command delete 1")
# Remove breakpoint 2.
self.runCmd("breakpoint delete 2")