From 405fe67f1424284173459575b1081f42935c50fd Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Mon, 4 Oct 2010 22:28:36 +0000 Subject: Modify existing commands with arguments to use the new argument mechanism (for standardized argument names, argument help, etc.) llvm-svn: 115570 --- lldb/source/Commands/CommandObjectProcess.cpp | 28 +++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 0c08767249f..73d03f5c89a 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -105,8 +105,20 @@ public: CommandObject (interpreter, "process launch", "Launch the executable in the debugger.", - "process launch [] []") + NULL) { + CommandArgumentEntry arg; + CommandArgumentData run_args_arg; + + // Define the first (and only) variant of this arg. + run_args_arg.arg_type = eArgTypeRunArgs; + run_args_arg.arg_repetition = eArgRepeatOptional; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (run_args_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } @@ -797,8 +809,20 @@ public: CommandObject (interpreter, "process signal", "Send a UNIX signal to the current process being debugged.", - "process signal ") + NULL) { + CommandArgumentEntry arg; + CommandArgumentData signal_arg; + + // Define the first (and only) variant of this arg. + signal_arg.arg_type = eArgTypeUnixSignalNumber; + signal_arg.arg_repetition = eArgRepeatPlain; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (signal_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } ~CommandObjectProcessSignal () -- cgit v1.2.3