diff options
| author | Jim Ingham <jingham@apple.com> | 2016-02-26 01:37:30 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2016-02-26 01:37:30 +0000 |
| commit | 970bb9e0ec3f45e4bb3212d6de928a13b87da402 (patch) | |
| tree | 2cefddf04323c5eabd10190b3740afe1134e5310 /lldb/source/Interpreter/CommandInterpreter.cpp | |
| parent | 2c6bd903edd49bb7b8eb9ad8ad12fe56db1f9fb9 (diff) | |
| download | llvm-970bb9e0ec3f45e4bb3212d6de928a13b87da402.zip llvm-970bb9e0ec3f45e4bb3212d6de928a13b87da402.tar.gz llvm-970bb9e0ec3f45e4bb3212d6de928a13b87da402.tar.bz2 | |
Add the "block" keyword to "thread step-in -e", and an alias that uses it: "sif <target function>" - i.e. step-into-function
to allow you to step through a complex calling sequence into a particular function that may span multiple lines. Also some
test cases for this and the --step-target feature.
llvm-svn: 261953
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
| -rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index c99ff59..20fe467 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -185,6 +185,9 @@ CommandInterpreter::Initialize () LoadCommandDictionary (); + // An alias arguments vector to reuse - reset it before use... + OptionArgVectorSP alias_arguments_vector_sp (new OptionArgVector); + // Set up some initial aliases. CommandObjectSP cmd_obj_sp = GetCommandSPExact ("quit", false); if (cmd_obj_sp) @@ -239,6 +242,11 @@ CommandInterpreter::Initialize () { AddAlias ("s", cmd_obj_sp); AddAlias ("step", cmd_obj_sp); + + alias_arguments_vector_sp.reset (new OptionArgVector); + ProcessAliasOptionsArgs (cmd_obj_sp, "--end-linenumber block --step-in-target %1", alias_arguments_vector_sp); + AddAlias ("sif", cmd_obj_sp); + AddOrReplaceAliasOptions("sif", alias_arguments_vector_sp); } cmd_obj_sp = GetCommandSPExact ("thread step-over", false); @@ -329,8 +337,6 @@ CommandInterpreter::Initialize () AddAlias ("image", cmd_obj_sp); - OptionArgVectorSP alias_arguments_vector_sp (new OptionArgVector); - cmd_obj_sp = GetCommandSPExact ("expression", false); if (cmd_obj_sp) { |
