vmmap: dont get on new_objfile

pull/951/head
Disconnect3d 4 years ago
parent cc84a1534d
commit 8faa634efa

@ -46,6 +46,9 @@ def find_upper_stack_boundary(addr, max_pages=1024):
if not pwndbg.abi.linux:
return addr + pwndbg.memory.PAGE_SIZE
# We don't want to find ELF magic here. We reuse the find_elf_magic func
# as it traverses 4kB pages and can find the boundary for us
# (in other words, we expect the ELF magic to not be present on the stack)
return pwndbg.elf.find_elf_magic(addr, max_pages=max_pages, ret_addr_anyway=True)

@ -33,7 +33,6 @@ explored_pages = []
# List of custom pages that can be managed manually by vmmap_* commands family
custom_pages = []
@pwndbg.events.new_objfile
@pwndbg.memoize.reset_on_stop
def get():
if not pwndbg.proc.alive:

Loading…
Cancel
Save