From 54563e76930a59c76ed4e5afa4409efdf356a1de Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Sat, 9 May 2015 15:27:35 -0700 Subject: [PATCH] Fix ranges --- pwndbg/symbol.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pwndbg/symbol.py b/pwndbg/symbol.py index 87c6504b0..16451bd41 100644 --- a/pwndbg/symbol.py +++ b/pwndbg/symbol.py @@ -71,6 +71,7 @@ def address(symbol): result = gdb.execute('info address %s' % symbol, to_string=True, from_tty=False) result = result.split() address = next(r for r in result if r.startswith('0x')) + address = address.split('-')[0] address = address.rstrip('.') return int(address, 0) except gdb.error: