Skip to content
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

Fixed 'info proc mappings' parsing for GDB>=12 #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JeffmeisterJ
Copy link

Parsing the info proc mapping command for GDB versions 12 and on is broken, since they include a perms column before the objfile column. Because everything after column 4 gets added to the name of the object, this breaks the sync functionality.

This happens because the objfile name is used to verify it's actually the name of the binary, normally this would for example be /usr/bin/cat, where for GDB >=12 it turns into r--p /usr/bin/cat, which the Ghidra/IDA side sees as something else than the current binary.

Examples:

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1:
image

GNU gdb (Ubuntu 11.1-0ubuntu2) 11.1:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant