Skip to content

[lldb] [NFC] Update TestEarlyProcessLaunch to work on macOS 15 #9034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test that we don't read objc class tables early in process startup."""


import time
import lldb
from lldbsuite.test.decorators import *
Expand Down Expand Up @@ -30,7 +29,14 @@ def test_early_process_launch(self):
###
### Use the types logging to detect the difference.

target, process, _, bkpt = lldbutil.run_to_name_breakpoint(self, "malloc")
exe = self.getBuildArtifact("a.out")
target = self.dbg.CreateTarget(exe)
self.assertTrue(target.IsValid())
bkpt = target.BreakpointCreateByRegex("alloc", None)
self.assertTrue(bkpt.IsValid())
(target, process, thread, bkpt) = lldbutil.run_to_breakpoint_do_run(
self, target, bkpt
)

target.DisableAllBreakpoints()
target.BreakpointCreateByName("main")
Expand Down