|
|
|
@ -133,7 +133,7 @@ def test_command_telescope_frame_bp_below_sp(start_binary):
|
|
|
|
gdb.execute("run")
|
|
|
|
gdb.execute("run")
|
|
|
|
gdb.execute("memoize") # turn off cache
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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
|
|
|
|
|
|
|
|
)
|
|
|
|
|