From bc51c5c7825280b1bf07e5a639ee437cbe0d1a1f Mon Sep 17 00:00:00 2001 From: Filip Grzywok Date: Thu, 28 Sep 2023 23:42:33 +0200 Subject: [PATCH] fix: Only use info proc mappings on supported qemu vesions --- flake.nix | 4 ++++ pwndbg/gdblib/vmmap.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6f3f26005..bf2822cc4 100644 --- a/flake.nix +++ b/flake.nix @@ -50,5 +50,9 @@ // (portableDrvs system) // (tarballDrv system) ); + + devShell = forAllSystems (system: { + } + ); }; } diff --git a/pwndbg/gdblib/vmmap.py b/pwndbg/gdblib/vmmap.py index 209396a51..70e8a8669 100644 --- a/pwndbg/gdblib/vmmap.py +++ b/pwndbg/gdblib/vmmap.py @@ -91,7 +91,7 @@ def get() -> tuple[pwndbg.lib.memory.Page, ...]: if is_corefile(): return tuple(coredump_maps()) - if pwndbg.gdblib.qemu.is_qemu_usermode(): + if pwndbg.gdblib.qemu.is_qemu_usermode() and pwndbg.gdblib.qemu.exec_file_supported(): proc_maps = info_proc_maps() else: proc_maps = proc_pid_maps()