-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[lldb][Mach-O] Read dyld_all_image_infos addr from main bin spec LC_NOTE
#127156
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
Changes from 1 commit
0a65589
1138415
74fee85
ee0bc6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5599,9 +5599,13 @@ bool ObjectFileMachO::GetCorefileMainBinaryInfo(addr_t &value, | |
| // struct main_bin_spec | ||
| // { | ||
| // uint32_t version; // currently 2 | ||
| // uint32_t type; // 0 == unspecified, 1 == kernel, | ||
| // uint32_t type; // 0 == unspecified, | ||
| // // 1 == kernel | ||
| // // 2 == user process, | ||
| // dyld mach-o binary addr | ||
| // // 3 == standalone binary | ||
| // // 4 == user process, | ||
| // // dyld_all_image_infos addr | ||
| // uint64_t address; // UINT64_MAX if address not specified | ||
| // uint64_t slide; // slide, UINT64_MAX if unspecified | ||
| // // 0 if no slide needs to be applied to | ||
|
|
@@ -5669,6 +5673,10 @@ bool ObjectFileMachO::GetCorefileMainBinaryInfo(addr_t &value, | |
| type = eBinaryTypeStandalone; | ||
| typestr = "standalone"; | ||
| break; | ||
| case 4: | ||
| type = eBinaryTypeUserAllImageInfos; | ||
| typestr = "userland dyld_all_image_infos"; | ||
| break; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this have a default case that sets
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you do, it might be useful to add a log. If that situation were to happen, you'd see it in the logs immediately and know that either the core file looks unexpected or LLDB has a bug in core file handling.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| } | ||
| LLDB_LOGF(log, | ||
| "LC_NOTE 'main bin spec' found, version %d type %d " | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.