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