summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-12-04 15:33:54 -0800
committerJason Molenda <jmolenda@apple.com>2019-12-04 15:33:54 -0800
commite001bf6330bb0e935b17c8a619e71bbded67e2eb (patch)
tree65dd34b75142591596b83131398c485929affddb /lldb/source/Interpreter/CommandInterpreter.cpp
parente11df585800596df2052a475f6191673b8f1a5c1 (diff)
downloadbcm5719-llvm-e001bf6330bb0e935b17c8a619e71bbded67e2eb.tar.gz
bcm5719-llvm-e001bf6330bb0e935b17c8a619e71bbded67e2eb.zip
Add help text for parray and poarray aliases.
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index e0224814841..5a4e466144a 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -362,10 +362,23 @@ void CommandInterpreter::Initialize() {
"controlled by the type's author.");
po->SetHelpLong("");
}
- AddAlias("parray", cmd_obj_sp, "--element-count %1 --")->SetHelpLong("");
- AddAlias("poarray", cmd_obj_sp,
- "--object-description --element-count %1 --")
- ->SetHelpLong("");
+ CommandAlias *parray_alias = AddAlias("parray", cmd_obj_sp,
+ "--element-count %1 --");
+ if (parray_alias) {
+ parray_alias->SetHelp
+ ("parray <COUNT> <EXPRESSION> -- lldb will evaluate EXPRESSION "
+ "to get a typed-pointer-to-an-array in memory, and will display "
+ "COUNT elements of that type from the array.");
+ parray_alias->SetHelpLong("");
+ }
+ CommandAlias *poarray_alias = AddAlias("poarray", cmd_obj_sp,
+ "--object-description --element-count %1 --");
+ if (poarray_alias) {
+ poarray_alias->SetHelp("poarray <COUNT> <EXPRESSION> -- lldb will "
+ "evaluate EXPRESSION to get the address of an array of COUNT "
+ "objects in memory, and will call po on them.");
+ poarray_alias->SetHelpLong("");
+ }
}
cmd_obj_sp = GetCommandSPExact("process kill", false);
OpenPOWER on IntegriCloud