Skip to content

Commit c9ce139

Browse files
DavidSpickettChenyang-L
authored andcommitted
Revert "[LLDB] Fix the use of "platform process launch" with no extra arguments"
This reverts commit cc0fc35 due to a failure reported on MacOS.
1 parent 4801bfa commit c9ce139

File tree

4 files changed

+2
-76
lines changed

4 files changed

+2
-76
lines changed

lldb/source/Commands/CommandObjectPlatform.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,12 +1207,8 @@ class CommandObjectPlatformProcessLaunch : public CommandObjectParsed {
12071207
if (m_options.launch_info.GetExecutableFile()) {
12081208
Debugger &debugger = GetDebugger();
12091209

1210-
if (argc == 0) {
1211-
// If no arguments were given to the command, use target.run-args.
1212-
Args target_run_args;
1213-
target->GetRunArguments(target_run_args);
1214-
m_options.launch_info.GetArguments().AppendArguments(target_run_args);
1215-
}
1210+
if (argc == 0)
1211+
target->GetRunArguments(m_options.launch_info.GetArguments());
12161212

12171213
ProcessSP process_sp(platform_sp->DebugProcess(
12181214
m_options.launch_info, debugger, *target, error));

lldb/test/API/commands/platform/process/launch/Makefile

Lines changed: 0 additions & 3 deletions
This file was deleted.

lldb/test/API/commands/platform/process/launch/TestPlatformProcessLaunch.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

lldb/test/API/commands/platform/process/launch/main.c

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)