mirror of
https://github.com/longld/peda.git
synced 2026-10-12 02:18:24 +00:00
Merge pull request #49 from mancha1/hexdump
Fix bug in hexdump when called with a byte count parameter
This commit is contained in:
@@ -3276,12 +3276,13 @@ class PEDACmd(object):
|
||||
if address is None:
|
||||
self._missing_argument()
|
||||
|
||||
if count and count.startswith("/"):
|
||||
if count is None:
|
||||
count = 16
|
||||
|
||||
if not to_int(count) and count.startswith("/"):
|
||||
count = to_int(count[1:])
|
||||
count = count * 16 if count else None
|
||||
|
||||
if count is None:
|
||||
count = 16
|
||||
bytes = peda.dumpmem(address, address+count)
|
||||
if bytes is None:
|
||||
warning_msg("cannot retrieve memory content")
|
||||
|
||||
Reference in New Issue
Block a user