File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -362,10 +362,23 @@ void CommandInterpreter::Initialize() {
362
362
" controlled by the type's author." );
363
363
po->SetHelpLong (" " );
364
364
}
365
- AddAlias (" parray" , cmd_obj_sp, " --element-count %1 --" )->SetHelpLong (" " );
366
- AddAlias (" poarray" , cmd_obj_sp,
367
- " --object-description --element-count %1 --" )
368
- ->SetHelpLong (" " );
365
+ CommandAlias *parray_alias = AddAlias (" parray" , cmd_obj_sp,
366
+ " --element-count %1 --" );
367
+ if (parray_alias) {
368
+ parray_alias->SetHelp
369
+ (" parray <COUNT> <EXPRESSION> -- lldb will evaluate EXPRESSION "
370
+ " to get a typed-pointer-to-an-array in memory, and will display "
371
+ " COUNT elements of that type from the array." );
372
+ parray_alias->SetHelpLong (" " );
373
+ }
374
+ CommandAlias *poarray_alias = AddAlias (" poarray" , cmd_obj_sp,
375
+ " --object-description --element-count %1 --" );
376
+ if (poarray_alias) {
377
+ poarray_alias->SetHelp (" poarray <COUNT> <EXPRESSION> -- lldb will "
378
+ " evaluate EXPRESSION to get the address of an array of COUNT "
379
+ " objects in memory, and will call po on them." );
380
+ poarray_alias->SetHelpLong (" " );
381
+ }
369
382
}
370
383
371
384
cmd_obj_sp = GetCommandSPExact (" process kill" , false );
You can’t perform that action at this time.
0 commit comments