From 87da998fcefe8cba85f51dba0056b923483c6c1c Mon Sep 17 00:00:00 2001 From: anthraxx Date: Mon, 19 Apr 2021 23:19:15 +0200 Subject: [PATCH] fix(telescope): also unroll buffer if last line is skipped In case the max steps are reached and the loop finished the current skip buffer remains filled and not unrolled when the last lines are all skipped values. Fix this by calling the collapse function and potentially unroll the buffer in case it contains any values. Fixes #907 --- pwndbg/commands/telescope.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pwndbg/commands/telescope.py b/pwndbg/commands/telescope.py index 1385590c4..c524705eb 100644 --- a/pwndbg/commands/telescope.py +++ b/pwndbg/commands/telescope.py @@ -131,6 +131,7 @@ def telescope(address=None, count=telescope_lines, to_string=False): result.append(line) + collapse_repeating_values() telescope.offset += i telescope.last_address = addr