Handle the binary formatting from LLDB in `test_vis_heap_chunks`

pull/3215/head
Matt 4 months ago
parent 2da60bd6ec
commit 96f604d0a7
No known key found for this signature in database

@ -42,8 +42,8 @@ async def test_vis_heap_chunk_command(ctrl: Controller) -> None:
from pwndbg.commands.ptmalloc2 import bin_ascii
first, second = (await ctrl.execute_and_capture(f"x/16xb {gdb_symbol}")).splitlines()
first = [int(v, 16) for v in first.split(":")[1].split("\t")[1:]]
second = [int(v, 16) for v in second.split(":")[1].split("\t")[1:]]
first = [int(v, 16) for v in first.split(":")[1].split()]
second = [int(v, 16) for v in second.split(":")[1].split()]
return bin_ascii(first + second)

Loading…
Cancel
Save