Restore start-on-objfile events, and fix caching in vmmap.

pull/23/merge
Zach Riggle 10 years ago
parent c77f5b254a
commit 70ebcd24dc

@ -136,9 +136,9 @@ def on_reload():
event.disconnect(function)
registered[event] = []
# @new_objfile
# def _start_newobjfile():
# gdb.events.start.on_new_objfile()
@new_objfile
def _start_newobjfile():
gdb.events.start.on_new_objfile()
@stop
def _start_stop():

@ -177,8 +177,7 @@ def proc_pid_maps():
return tuple(pages)
@pwndbg.memoize.reset_on_objfile
@pwndbg.memoize.reset_on_stop
def info_sharedlibrary():
"""
Parses the output of `info sharedlibrary`.
@ -224,7 +223,7 @@ def info_sharedlibrary():
return tuple(sorted(pages))
@pwndbg.memoize.reset_on_objfile
@pwndbg.memoize.reset_on_stop
def info_files():
example_info_files_linues = """

Loading…
Cancel
Save