Skip to content

Commit

Permalink
Use Enrico's new CommandAlias to give better help to the "sif" command.
Browse files Browse the repository at this point in the history
llvm-svn: 263865
  • Loading branch information
jimingham committed Mar 19, 2016
1 parent b3a36df commit d23be3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lldb/source/Interpreter/CommandInterpreter.cpp
Expand Up @@ -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 <TargetFunctionName>");
}
}

cmd_obj_sp = GetCommandSPExact ("thread step-over", false);
Expand Down

0 comments on commit d23be3d

Please sign in to comment.