[Lldb-commits] [lldb] r263865 - Use Enrico's new CommandAlias to give better help to the "sif" command.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 18 17:53:20 PDT 2016


Author: jingham
Date: Fri Mar 18 19:53:20 2016
New Revision: 263865

URL: http://llvm.org/viewvc/llvm-project?rev=263865&view=rev
Log:
Use Enrico's new CommandAlias to give better help to the "sif" command.

Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=263865&r1=263864&r2=263865&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Fri Mar 18 19:53:20 2016
@@ -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);




More information about the lldb-commits mailing list