Added an "rb" alias that sets breakpoints by
regular expression.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@157202 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index 074ef53..3e6597b 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -256,6 +256,15 @@
{
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 *