diff options
| author | Jim Ingham <jingham@apple.com> | 2016-03-19 00:53:20 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2016-03-19 00:53:20 +0000 |
| commit | d23be3d30d808c4c0d9a6cbd98274ec49afef7a9 (patch) | |
| tree | 99caa2ad3b669d21123c1397a2c947d7dfbeb82e /lldb/source/Interpreter/CommandInterpreter.cpp | |
| parent | b3a36df39e60f1f5833930190b29a0a41336c24d (diff) | |
| download | llvm-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.cpp | 8 |
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); |
