From 30dd9b4479ab8464c5dceee1be52ae9584be23de Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Mon, 13 Sep 2021 23:09:09 +0200 Subject: [PATCH] Disable memory pages exploration for now The `explore_registers` and `clear_explored_pages` functions are currently redundant as we create an empty memory page on QEMU targets. Also, this functions are not so useful to be called automagically on real remote and embedded targets where we may not have the memory pages information (as it may be too slow to explore stuff via remote gdbstub on a real embedded target). --- pwndbg/vmmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwndbg/vmmap.py b/pwndbg/vmmap.py index c09cf28a3..9f7604c3b 100644 --- a/pwndbg/vmmap.py +++ b/pwndbg/vmmap.py @@ -118,13 +118,13 @@ def explore(address_maybe): return page # Automatically ensure that all registers are explored on each stop -@pwndbg.events.stop +#@pwndbg.events.stop def explore_registers(): for regname in pwndbg.regs.common: find(pwndbg.regs[regname]) -@pwndbg.events.exit +#@pwndbg.events.exit def clear_explored_pages(): while explored_pages: explored_pages.pop()