Simplify event

pull/22/head
Zach Riggle 10 years ago
parent e7eb0da415
commit 661ff5899f

@ -26,8 +26,7 @@ def is_pointer(value):
type = type.strip_typedefs()
return type.code == gdb.TYPE_CODE_PTR
@pwndbg.events.new_objfile
@pwndbg.memoize.reset_on_exit
@pwndbg.events.start
def update():
module.char = gdb.lookup_type('char')
module.ulong = gdb.lookup_type('unsigned long')
@ -59,10 +58,6 @@ def update():
# Call it once so we load all of the types
update()
# Reset the cache so that the first load isn't cached.
update.clear()
tempdir = tempfile.gettempdir() + '/pwndbg'
if not os.path.exists(tempdir):
os.mkdir(tempdir)

Loading…
Cancel
Save