summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-08-26 23:56:11 +0000
committerJim Ingham <jingham@apple.com>2010-08-26 23:56:11 +0000
commit2561aa612434bd74efef14e4688a06c065690d94 (patch)
tree30d9ad148607e86b0f2e34f48e2e2d693e4d0a31 /lldb/source/Commands
parentfaf5fb4b78c79ba5ee3ecf30b44966b22979ab71 (diff)
downloadbcm5719-llvm-2561aa612434bd74efef14e4688a06c065690d94.tar.gz
bcm5719-llvm-2561aa612434bd74efef14e4688a06c065690d94.zip
Change the "-S", "-F" and "-M" options to take their arguments directly, rather than requiring the -n option. This means you can't "or" together the types (i.e. set a breakpoint on a method or selector called "whatever". But that is a pretty uncommon operation, and having to provide two flags for the more common "set a breakpoint on this selector" is annoying.
llvm-svn: 112245
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 3bbd282aca6..3cc721a7595 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -104,21 +104,19 @@ CommandObjectBreakpointSet::CommandOptions::g_option_table[] =
"Set the breakpoint by address, at the specified address."},
{ LLDB_OPT_SET_3, true, "name", 'n', required_argument, NULL, CommandCompletions::eSymbolCompletion, "<name>",
- "Set the breakpoint by function name." },
+ "Set the breakpoint by function name - for C++ this means namespaces and arguments will be ignored." },
- { LLDB_OPT_SET_3, false, "basename", 'b', no_argument, NULL, 0, NULL,
- "Used in conjuction with --name <name> to search function basenames." },
+ { LLDB_OPT_SET_4, true, "fullname", 'F', required_argument, NULL, 0, "<fullname>",
+ "Set the breakpoint by fully qualified function names. For C++ this means namespaces and all arguemnts, and "
+ "for Objective C this means a full function prototype with class and selector." },
- { LLDB_OPT_SET_3, false, "fullname", 'F', no_argument, NULL, 0, NULL,
- "Used in conjuction with --name <name> to search fully qualified function names. For C++ this means namespaces and all arguemnts, and for Objective C this means a full function prototype with class and selector." },
+ { LLDB_OPT_SET_5, true, "selector", 'S', required_argument, NULL, 0, "<selector>",
+ "Set the breakpoint by ObjC selector name." },
- { LLDB_OPT_SET_3, false, "selector", 'S', no_argument, NULL, 0, NULL,
- "Used in conjuction with --name <name> to search objective C selector names." },
+ { LLDB_OPT_SET_6, true, "method", 'M', required_argument, NULL, 0, "<method>",
+ "Set the breakpoint by C++ method names." },
- { LLDB_OPT_SET_3, false, "method", 'm', no_argument, NULL, 0, NULL,
- "Used in conjuction with --name <name> to search objective C selector C++ method names." },
-
- { LLDB_OPT_SET_4, true, "func_regex", 'r', required_argument, NULL, 0, "<regular-expression>",
+ { LLDB_OPT_SET_7, true, "func_regex", 'r', required_argument, NULL, 0, "<regular-expression>",
"Set the breakpoint by function name, evaluating a regular-expression to find the function name(s)." },
{ 0, false, NULL, 0, 0, NULL, 0, NULL, NULL }
@@ -161,21 +159,21 @@ CommandObjectBreakpointSet::CommandOptions::SetOptionValue (int option_idx, cons
case 'n':
m_func_name = option_arg;
- break;
-
- case 'b':
m_func_name_type_mask |= eFunctionNameTypeBase;
break;
case 'F':
+ m_func_name = option_arg;
m_func_name_type_mask |= eFunctionNameTypeFull;
break;
case 'S':
+ m_func_name = option_arg;
m_func_name_type_mask |= eFunctionNameTypeSelector;
break;
- case 'm':
+ case 'M':
+ m_func_name = option_arg;
m_func_name_type_mask |= eFunctionNameTypeMethod;
break;
OpenPOWER on IntegriCloud