[Bug] search-pattern
doesn't work in gef-remote
when connected to qemu-system
.
#905
Closed
1 of 9 tasks
GEF+GDB version
Operating System
Manjaro
Describe the issue you encountered
After connecting to the
qemu-system
GDB stub (gef-remote --qemu-user --qemu-binary /tmp/vmlinux localhost 1234
), usingsearch-pattern pattern
gives this output:Handling an exception can resolve this issue (under
auxiliary_vector
)In
search_pattern_by_address
, however,gef
iterates over the entire memory map, returning as soon as reading fails. As Qemu reports memory as beginning at0
, the search fails immediately.pwndbg
seems to approach this issue by special-casing a connection to a QEMU kernel instance and usingmonitor info mem
to retrieve the real memory mappings.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.
Described above
Minimalist test case
No response
Additional context?
No response
The text was updated successfully, but these errors were encountered: