Fixed linters

pull/1843/head
ntsleep 2 years ago committed by Disconnect3d
parent cd616cf28b
commit dbdce5d72d

@ -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

@ -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
)

Loading…
Cancel
Save