mirror of https://github.com/pwndbg/pwndbg.git
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.
25 lines
484 B
Python
25 lines
484 B
Python
import gdb
|
|
|
|
import gef.memoize
|
|
|
|
@gef.memoize.reset_on_exit
|
|
def proc_mapping():
|
|
try:
|
|
return gdb.execute('info proc mapping', to_string=True)
|
|
except gdb.error:
|
|
return ''
|
|
|
|
@gef.memoize.reset_on_exit
|
|
def auxv():
|
|
try:
|
|
return gdb.execute('info auxv', to_string=True)
|
|
except gdb.error:
|
|
return ''
|
|
|
|
@gef.memoize.reset_on_stop
|
|
def files():
|
|
try:
|
|
return gdb.execute('info files', to_string=True)
|
|
except gdb.error:
|
|
return ''
|