-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the dyld notification function that lldb puts a breakpoint in
On Darwin systems, the dynamic linker dyld has an empty function it calls when binaries are added/removed from the process. lldb puts a breakpoint on this dyld function to catch the notifications. The function arguments are used by lldb to tell what is happening. The linker has a natural representation when the addresses of binaries being added/removed are in the pointer size of the process. There is then a second function where the addresses of the binaries are in a uint64_t array, which the debugger has been using before - dyld allocates memory for the array, copies the values in to it, and calls it for lldb's benefit. This changes to using the native notifier function, with pointer-sized addresses. Differential Revision: https://reviews.llvm.org/D139453
- Loading branch information
1 parent
2a631a8
commit 624813a
Showing
1 changed file
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters