-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix the MacOS remote unwinder for VS4Mac #63405
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 all commits
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 |
|---|---|---|
|
|
@@ -229,9 +229,8 @@ MachOModule::ReadLoadCommands() | |
| m_segments.push_back(segment); | ||
|
|
||
| // Calculate the load bias for the module. This is the value to add to the vmaddr of a | ||
| // segment to get the actual address. For shared modules, this is 0 since those segments | ||
| // are absolute address. | ||
| if (segment->fileoff == 0 && segment->filesize > 0) | ||
| // segment to get the actual address. | ||
| if (strcmp(segment->segname, SEG_TEXT) == 0) | ||
|
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. Is there any guarantee that the first segment is the text segment, and that there's only one ever (the spec seems to imply that there is always at least one, but nothing about there being multiple or the ordering)? Otherwise we may get here more than once or have a wrong offset. Also, what happens with the bias of data segments? Granted, this was already never considered if the first segment was always text.
Contributor
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. Yes, there is only __TEXT segment and it always seems to be the first one. |
||
| { | ||
| m_loadBias = m_baseAddress - segment->vmaddr; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.