mirror of https://github.com/pwndbg/pwndbg
Python3
This commit is contained in:
parent
07159546bd
commit
8a44b111e3
|
@ -53,7 +53,7 @@ def address(symbol):
|
|||
try:
|
||||
result = gdb.execute('info address %s' % symbol, to_string=True, from_tty=False)
|
||||
result = result.split()
|
||||
address = (r for r in result if r.startswith('0x')).next()
|
||||
address = next(r for r in result if r.startswith('0x'))
|
||||
return int(address, 0)
|
||||
except gdb.error:
|
||||
return None
|
Loading…
Reference in New Issue