File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 52
52
#include " lldb/Utility/LLDBLog.h"
53
53
#include " lldb/Utility/State.h"
54
54
#include " lldb/Utility/Timer.h"
55
+ #include " lldb/lldb-enumerations.h"
55
56
#include " lldb/lldb-private-enumerations.h"
56
57
57
58
#include " clang/CodeGen/ObjectFilePCHContainerOperations.h"
@@ -2945,8 +2946,10 @@ class CommandObjectTargetModulesList : public CommandObjectParsed {
2945
2946
CommandObjectTargetModulesList (CommandInterpreter &interpreter)
2946
2947
: CommandObjectParsed(
2947
2948
interpreter, " target modules list" ,
2948
- " List current executable and dependent shared library images." ,
2949
- " target modules list [<cmd-options>]" ) {}
2949
+ " List current executable and dependent shared library images." ) {
2950
+ CommandArgumentData module_arg{eArgTypeShlibName, eArgRepeatStar};
2951
+ m_arguments.push_back ({module_arg});
2952
+ }
2950
2953
2951
2954
~CommandObjectTargetModulesList () override = default ;
2952
2955
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ def test_help_image_du_line_should_work(self):
103
103
self .expect ("help image du line" , substrs = [
104
104
'Dump the line table for one or more compilation units' ])
105
105
106
+ @no_debug_info_test
107
+ def test_help_image_list_shows_positional_args (self ):
108
+ """Command 'help image list' should describe positional args."""
109
+ # 'image' is an alias for 'target modules'.
110
+ self .expect ("help image list" , substrs = [
111
+ '<shlib-name> [...]' ])
112
+
106
113
@no_debug_info_test
107
114
def test_help_target_variable_syntax (self ):
108
115
"""Command 'help target variable' should display <variable-name> ..."""
You can’t perform that action at this time.
0 commit comments