fix: Only use info proc mappings on supported qemu vesions

pull/1927/head
Filip Grzywok 2 years ago committed by Disconnect3d
parent e5a3a50a70
commit bc51c5c782

@ -50,5 +50,9 @@
// (portableDrvs system) // (portableDrvs system)
// (tarballDrv system) // (tarballDrv system)
); );
devShell = forAllSystems (system: {
}
);
}; };
} }

@ -91,7 +91,7 @@ def get() -> tuple[pwndbg.lib.memory.Page, ...]:
if is_corefile(): if is_corefile():
return tuple(coredump_maps()) 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() proc_maps = info_proc_maps()
else: else:
proc_maps = proc_pid_maps() proc_maps = proc_pid_maps()

Loading…
Cancel
Save