You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ LLDB_OPT_SET_ALL, false, "one-liner", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOneLiner, "Add a command for the stop hook. Can be specified more than once, and commands will be run in the order they appear." },
4558
+
{ LLDB_OPT_SET_ALL, false, "one-liner", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOneLiner, "Specify a one-line breakpoint command inline. Be sure to surround it with quotes." },
4559
4559
{ LLDB_OPT_SET_ALL, false, "shlib", 's', OptionParser::eRequiredArgument, nullptr, {}, CommandCompletions::eModuleCompletion, eArgTypeShlibName, "Set the module within which the stop-hook is to be run." },
4560
4560
{ LLDB_OPT_SET_ALL, false, "thread-index", 'x', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeThreadIndex, "The stop hook is run only for the thread whose index matches this argument." },
4561
4561
{ LLDB_OPT_SET_ALL, false, "thread-id", 't', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeThreadID, "The stop hook is run only for the thread whose TID matches this argument." },
{ LLDB_OPT_SET_1, false, "end-line", 'e', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeLineNum, "Set the end of the line range for which the stop-hook is to be run." },
4567
4567
{ LLDB_OPT_SET_2, false, "classname", 'c', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeClassName, "Specify the class within which the stop-hook is to be run." },
4568
4568
{ LLDB_OPT_SET_3, false, "name", 'n', OptionParser::eRequiredArgument, nullptr, {}, CommandCompletions::eSymbolCompletion, eArgTypeFunctionName, "Set the function name within which the stop hook will be run." },
4569
-
{ LLDB_OPT_SET_ALL, false, "auto-continue",'G', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "The breakpoint will auto-continue after running its commands." },
4570
4569
// clang-format on
4571
4570
};
4572
4571
@@ -4607,17 +4606,6 @@ class CommandObjectTargetStopHookAdd : public CommandObjectParsed,
4607
4606
m_sym_ctx_specified = true;
4608
4607
break;
4609
4608
4610
-
case'G': {
4611
-
bool value, success;
4612
-
value = OptionArgParser::ToBoolean(option_arg, false, &success);
4613
-
if (success) {
4614
-
m_auto_continue = value;
4615
-
} else
4616
-
error.SetErrorStringWithFormat(
4617
-
"invalid boolean value '%s' passed for -G option",
4618
-
option_arg.str().c_str());
4619
-
}
4620
-
break;
4621
4609
case'l':
4622
4610
if (option_arg.getAsInteger(0, m_line_start)) {
4623
4611
error.SetErrorStringWithFormat("invalid start line number: \"%s\"",
@@ -4673,7 +4661,7 @@ class CommandObjectTargetStopHookAdd : public CommandObjectParsed,
4673
4661
4674
4662
case'o':
4675
4663
m_use_one_liner = true;
4676
-
m_one_liner.push_back(option_arg);
4664
+
m_one_liner = option_arg;
4677
4665
break;
4678
4666
4679
4667
default:
@@ -4702,7 +4690,6 @@ class CommandObjectTargetStopHookAdd : public CommandObjectParsed,
4702
4690
4703
4691
m_use_one_liner = false;
4704
4692
m_one_liner.clear();
4705
-
m_auto_continue = false;
4706
4693
}
4707
4694
4708
4695
std::string m_class_name;
@@ -4721,8 +4708,7 @@ class CommandObjectTargetStopHookAdd : public CommandObjectParsed,
4721
4708
bool m_thread_specified;
4722
4709
// Instance variables to hold the values for one_liner options.
0 commit comments