Added an "rb" alias that sets breakpoints by

regular expression.

llvm-svn: 157202
This commit is contained in:
Sean Callanan 2012-05-21 18:25:19 +00:00
parent 19a7bcedb1
commit fc732755ad
1 changed files with 9 additions and 0 deletions

View File

@ -256,6 +256,15 @@ CommandInterpreter::Initialize ()
{
AddAlias ("add-dsym", cmd_obj_sp);
}
cmd_obj_sp = GetCommandSPExact ("breakpoint set", false);
if (cmd_obj_sp)
{
alias_arguments_vector_sp.reset (new OptionArgVector);
ProcessAliasOptionsArgs (cmd_obj_sp, "--func-regex %1", alias_arguments_vector_sp);
AddAlias ("rb", cmd_obj_sp);
AddOrReplaceAliasOptions("rb", alias_arguments_vector_sp);
}
}
const char *