diff --git a/pwndbg/commands/telescope.py b/pwndbg/commands/telescope.py index fa62f8822..6854f2a20 100644 --- a/pwndbg/commands/telescope.py +++ b/pwndbg/commands/telescope.py @@ -115,7 +115,9 @@ def telescope(address=None, count=telescope_lines, to_string=False, reverse=Fals for page in pwndbg.gdblib.vmmap.get(): if sp in page and bp not in page: - print("Cannot display stack frame because base pointer is not on the same page with stack pointer") + print( + "Cannot display stack frame because base pointer is not on the same page with stack pointer" + ) return address = sp diff --git a/tests/gdb-tests/tests/test_command_telescope.py b/tests/gdb-tests/tests/test_command_telescope.py index 2695c8635..dbc02baea 100644 --- a/tests/gdb-tests/tests/test_command_telescope.py +++ b/tests/gdb-tests/tests/test_command_telescope.py @@ -133,7 +133,7 @@ def test_command_telescope_frame_bp_below_sp(start_binary): gdb.execute("run") gdb.execute("memoize") # turn off cache - pwndbg.gdblib.regs.sp = (pwndbg.gdblib.regs[pwndbg.gdblib.regs.frame] + 1) + pwndbg.gdblib.regs.sp = pwndbg.gdblib.regs[pwndbg.gdblib.regs.frame] + 1 result_str = gdb.execute("telescope --frame", to_string=True) @@ -157,4 +157,7 @@ def test_command_telescope_frame_bp_sp_different_vmmaps(start_binary): result_str = gdb.execute("telescope --frame", to_string=True) - assert "Cannot display stack frame because base pointer is not on the same page with stack pointer" in result_str + assert ( + "Cannot display stack frame because base pointer is not on the same page with stack pointer" + in result_str + )