[Lldb-commits] [lldb] r144330 - /lldb/trunk/source/Commands/CommandObjectTarget.cpp
Jason Molenda
jmolenda at apple.com
Thu Nov 10 15:03:44 PST 2011
Author: jmolenda
Date: Thu Nov 10 17:03:44 2011
New Revision: 144330
URL: http://llvm.org/viewvc/llvm-project?rev=144330&view=rev
Log:
Fix order of arguments for target stop-hook list/delete. Having
the argument description in the command name could cause a command
alias to crash, e.g.
command alias zzz target stop-hook delete 1
because the "name" is used to re-fetch the exact CommandObject when
adding the final arg.
<rdar://problem/10423753>
Modified:
lldb/trunk/source/Commands/CommandObjectTarget.cpp
Modified: lldb/trunk/source/Commands/CommandObjectTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectTarget.cpp?rev=144330&r1=144329&r2=144330&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectTarget.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectTarget.cpp Thu Nov 10 17:03:44 2011
@@ -3830,9 +3830,9 @@
CommandObjectTargetStopHookDelete (CommandInterpreter &interpreter) :
CommandObject (interpreter,
- "target stop-hook delete [<id>]",
+ "target stop-hook delete",
"Delete a stop-hook.",
- "target stop-hook delete")
+ "target stop-hook delete [<idx>]")
{
}
@@ -3976,9 +3976,9 @@
CommandObjectTargetStopHookList (CommandInterpreter &interpreter) :
CommandObject (interpreter,
- "target stop-hook list [<type>]",
+ "target stop-hook list",
"List all stop-hooks.",
- "target stop-hook list")
+ "target stop-hook list [<type>]")
{
}
More information about the lldb-commits
mailing list