-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
Correctly parse offset from info proc mappings
output (#1096)
#1098
Conversation
Fix the Offset column in the `vmmap` command by getting the offset from the correct column in `parse_gdb_info_proc_maps`.
good eye. Seems we didn't test the offset. Could you please add that (in tests/gef_memory.py). |
I'm not really sure if this is the right way to test this. |
We could maybe use |
The offsets parsed are now checked against the offsets in `/proc/PID/maps`.
I had a little bit of trouble trying to get the readelf idea to work,
The offsets for the load segments are 0, 0x1000, 0x2000 and 0x2dd0, Instead, I now open /proc/PID/maps and check that the offsets from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
Fix the Offset column in the
vmmap
command by getting the offset from the correct column inparse_gdb_info_proc_maps
.Before:
After:
info proc mappings:
Checklist