You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/gef/arch.py

14 lines
272 B
Python

import gdb
import gef.memoize
import gef.events
import gef.types
current = None
ptrmask = 0xfffffffff
@gef.events.stop
def update():
global current
global ptrmask
current = gdb.selected_frame().architecture().name()
ptrmask = (1 << 8*gef.types.ptrsize)-1