[lldb] Set the launch flags to GetLaunchInfo().GetLaunchFlags()

Instead of clearing the launch flags, always pass the target's current
launch flags.
This commit is contained in:
Jonas Devlieghere
2020-08-13 10:23:52 -07:00
parent fed9ff5117
commit 2ddba09e06
4 changed files with 12 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ class EventAPITestCase(TestBase):
# Now launch the process, and do not stop at the entry point.
error = lldb.SBError()
flags = target.GetLaunchInfo().GetLaunchFlags()
process = target.Launch(listener,
None, # argv
None, # envp
@@ -57,7 +58,7 @@ class EventAPITestCase(TestBase):
None, # stdout_path
None, # stderr_path
None, # working directory
0, # launch flags
flags, # launch flags
False, # Stop at entry
error) # error
@@ -145,6 +146,7 @@ class EventAPITestCase(TestBase):
# Now launch the process, and do not stop at entry point.
error = lldb.SBError()
flags = target.GetLaunchInfo().GetLaunchFlags()
process = target.Launch(listener,
None, # argv
None, # envp
@@ -152,7 +154,7 @@ class EventAPITestCase(TestBase):
None, # stdout_path
None, # stderr_path
None, # working directory
0, # launch flags
flags, # launch flags
False, # Stop at entry
error) # error
self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
@@ -224,6 +226,7 @@ class EventAPITestCase(TestBase):
# Now launch the process, and do not stop at the entry point.
error = lldb.SBError()
flags = target.GetLaunchInfo().GetLaunchFlags()
process = target.Launch(listener,
None, # argv
None, # envp
@@ -231,7 +234,7 @@ class EventAPITestCase(TestBase):
None, # stdout_path
None, # stderr_path
None, # working directory
0, # launch flags
flags, # launch flags
False, # Stop at entry
error) # error