aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2016-03-19 00:53:20 +0000
committerJim Ingham <jingham@apple.com>2016-03-19 00:53:20 +0000
commitd23be3d30d808c4c0d9a6cbd98274ec49afef7a9 (patch)
tree99caa2ad3b669d21123c1397a2c947d7dfbeb82e /lldb/source/Interpreter/CommandInterpreter.cpp
parentb3a36df39e60f1f5833930190b29a0a41336c24d (diff)
downloadllvm-d23be3d30d808c4c0d9a6cbd98274ec49afef7a9.zip
llvm-d23be3d30d808c4c0d9a6cbd98274ec49afef7a9.tar.gz
llvm-d23be3d30d808c4c0d9a6cbd98274ec49afef7a9.tar.bz2
Use Enrico's new CommandAlias to give better help to the "sif" command.
llvm-svn: 263865
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp8
1 files changed, 7 insertions, 1 deletions
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 <TargetFunctionName>");
+ }
}
cmd_obj_sp = GetCommandSPExact ("thread step-over", false);