-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
[Bug] vmmap command not showing memory regions of QEMU emulated x86-64 binary #1036
Comments
Hi @avncharlie This is not a bug and it is implemented very explicitly in the code https://github.com/hugsy/gef/blob/main/gef.py#L11127-L11134 qemu-user & gdb don't share enough information via the gdb remote protocol to reliably reconstitute the equivalent of Cheers |
Thanks, makes sense! |
GEF+GDB version
Operating System
Ubuntu 22.04.3 LTS
Describe the issue you encountered
When using
gef-remote
to debug a x86-64 binary running using QEMU, thevmmap
command doesn't correctly show the emulated program's memory regions. It just shows this one region:Do you read the docs and look at previously closed issues/PRs for similar cases?
Yes
Architecture impacted
Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.
I compiled the test program below with this command:
x86_64-linux-gnu-gcc main.c -o x86
I ran it under QEMU using this command:
qemu-x86_64 -g 1234 ./x86
I then ran gef with these commands:
gef successfully attaches to this program and I can see the assembly listing + registers.
However, when I run vmmap I don't see the expected memory areas of this program.
Minimalist test case
Additional context?
No response
The text was updated successfully, but these errors were encountered: