Update pwndbg/commands/vmmap.py

pull/1927/head
Disconnect3d 2 years ago
parent bad56cd682
commit 0f0bb922db

@ -158,7 +158,7 @@ def vmmap(
gdb_version = tuple(map(int, re.search(r"(\d+)[^\d]+(\d+)", gdb.VERSION).groups()))
# Only GDB versions >=12 report permission info in info proc mappings. On older versions, we fallback on "rwx".
# * https://github.com/bminor/binutils-gdb/commit/29ef4c0699e1b46d41ade00ae07a54f979ea21cc
# See https://github.com/bminor/binutils-gdb/commit/29ef4c0699e1b46d41ade00ae07a54f979ea21cc
if pwndbg.gdblib.qemu.is_qemu_usermode() and gdb_version[0] < 12:
print(
"\n[GDB <=12.1 detected - vmmap cannot fetch permission information, defaulting to rwx]"

Loading…
Cancel
Save