Watchpoint IDs and ID Ranges are not quite the same as Breakpoint IDs and ID Ranges.

Add eArgTypeWatchpointID and eArgTypeWatchpointIDRange to the CommandArgumentType enums and
modify the signature of CommandObject::AddIDsArgumentData() from:

    AddIDsArgumentData(CommandArgumentEntry &arg)

to:

    AddIDsArgumentData(CommandArgumentEntry &arg, CommandArgumentType ID, CommandArgumentType IDRange)

to accommodate.

llvm-svn: 140346
This commit is contained in:
Johnny Chen
2011-09-22 22:34:09 +00:00
parent 6cca67fc4a
commit de75346496
5 changed files with 16 additions and 12 deletions

View File

@@ -805,7 +805,7 @@ CommandObjectBreakpointEnable::CommandObjectBreakpointEnable (CommandInterpreter
NULL)
{
CommandArgumentEntry arg;
CommandObject::AddIDsArgumentData(arg);
CommandObject::AddIDsArgumentData(arg, eArgTypeBreakpointID, eArgTypeBreakpointIDRange);
// Add the entry for the first argument for this command to the object's arguments vector.
m_arguments.push_back (arg);
}
@@ -906,7 +906,7 @@ CommandObjectBreakpointDisable::CommandObjectBreakpointDisable (CommandInterpret
NULL)
{
CommandArgumentEntry arg;
CommandObject::AddIDsArgumentData(arg);
CommandObject::AddIDsArgumentData(arg, eArgTypeBreakpointID, eArgTypeBreakpointIDRange);
// Add the entry for the first argument for this command to the object's arguments vector.
m_arguments.push_back (arg);
}
@@ -1187,7 +1187,7 @@ CommandObjectBreakpointDelete::CommandObjectBreakpointDelete(CommandInterpreter
NULL)
{
CommandArgumentEntry arg;
CommandObject::AddIDsArgumentData(arg);
CommandObject::AddIDsArgumentData(arg, eArgTypeBreakpointID, eArgTypeBreakpointIDRange);
// Add the entry for the first argument for this command to the object's arguments vector.
m_arguments.push_back (arg);
}
@@ -1447,7 +1447,7 @@ CommandObjectBreakpointModify::CommandObjectBreakpointModify (CommandInterpreter
m_options (interpreter)
{
CommandArgumentEntry arg;
CommandObject::AddIDsArgumentData(arg);
CommandObject::AddIDsArgumentData(arg, eArgTypeBreakpointID, eArgTypeBreakpointIDRange);
// Add the entry for the first argument for this command to the object's arguments vector.
m_arguments.push_back (arg);
}