-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add registers to macholib.mach_o.thread_command #12
Comments
Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren). Do you have a patch for this? And if not, do you have a reference to documentation where the structure of thread_command is described? |
Original comment by Asger Hautop Drewsen (Bitbucket: tyilo, GitHub: tyilo). I don't have a patch, but you could take a look at MachOView's implementation: https://github.com/gdbinit/MachOView/blob/9863d6ef744a73a54f05eaa0323adc8707c10bf5/LoadCommands.mm#L885 |
Original comment by Asger Hautop Drewsen (Bitbucket: tyilo, GitHub: tyilo). The problem with implementing this is that the registers depends on the flavor field of the load command, so you can't just add it to the Here is some code that extracts the registers:
|
Original comment by Asger Hautop Drewsen (Bitbucket: tyilo, GitHub: tyilo). The reference for the fields in the thread command is For the list of registers they can be found in |
Added support for new load commands
Original report by Asger Hautop Drewsen (Bitbucket: tyilo, GitHub: tyilo).
Currently you have to parse macholib.mach_o.thread_command yourself.
Then instead of doing:
you could do:
The text was updated successfully, but these errors were encountered: