Merge pull request #117 from Agahlot/master

fix telescope output
This commit is contained in:
Long Le 2018-02-07 07:36:26 +07:00 committed by GitHub
commit 4cd2bfb282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -4746,6 +4746,8 @@ class PEDACmd(object):
step = peda.intsize() step = peda.intsize()
if not peda.is_address(address): # cannot determine address if not peda.is_address(address): # cannot determine address
msg("Invalid $SP address: 0x%x" % address, "red")
return
for i in range(count): for i in range(count):
if not peda.execute("x/%sx 0x%x" % ("g" if step == 8 else "w", address + i*step)): if not peda.execute("x/%sx 0x%x" % ("g" if step == 8 else "w", address + i*step)):
break break