From d23be3d30d808c4c0d9a6cbd98274ec49afef7a9 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Sat, 19 Mar 2016 00:53:20 +0000 Subject: [PATCH] Use Enrico's new CommandAlias to give better help to the "sif" command. llvm-svn: 263865 --- lldb/source/Interpreter/CommandInterpreter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 08c864c..c2ea5ef 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -242,7 +242,13 @@ CommandInterpreter::Initialize () { AddAlias ("s", cmd_obj_sp); AddAlias ("step", cmd_obj_sp); - AddAlias ("sif", cmd_obj_sp, "--end-linenumber block --step-in-target %1"); + CommandAlias *sif_alias = AddAlias ("sif", cmd_obj_sp, "--end-linenumber block --step-in-target %1"); + if (sif_alias) + { + sif_alias->SetHelp("Step through the current block, stopping if you step " + "directly into a function whose name matches the TargetFunctionName."); + sif_alias->SetSyntax("sif "); + } } cmd_obj_sp = GetCommandSPExact ("thread step-over", false); -- 2.7.4