rizin/test/db/archos/linux-x64/dbg_step_back
NOT XVilka ba8c170852
Migrate from Capstone to Zydis (x86 architecture) (#5164)
* Added build files [Capstone to Zydis]

* x86 Analysis [Capstone to Zydis]

* Changed x86 RzIL [Capstone to Zydis]

* Changed asm and arch files [Capstone to Zydis]

* Compilation, build error and test fixes [Capstone to Zydis]

* Test changes [Capstone to Zydis]

* Remaining changes [Capstone to Zydis]

* Added BE support [Capstone to Zydis]

---------

Co-authored-by: tushar3q34 <tushar3q34@gmail.com>
2025-05-23 13:03:46 +00:00

67 lines
864 B
Text

NAME=dbg.stepback
FILE=bins/elf/analysis/ls-linux-x86_64-zlul
ARGS=-d -e dbg.bpsysign=true
CMDS=<<EOF
db @ main
db @ 0x004028b6
dc
dts+
dc
dr rip
$rsp_after=$`dr rsp`
2dsb
dr rip
%v `dr rsp~[1]`-`$rsp_after~[1]`
EOF
EXPECT=<<EOF
rip = 0x00000000004028b6
rip = 0x00000000004028af
0x3c8
EOF
RUN
NAME=debug stepback from callee
FILE=bins/elf/analysis/calls_x64
ARGS=-d
CMDS=<<EOF
db @ main
db @ 0x00400510
dc
dts+
dc
dr rax
dr rip
$rsp_after=$`dr rsp`
dsb
dsb
dr rax
dr rip
%v `dr rsp~[1]`-`$rsp_after~[1]`
EOF
EXPECT=<<EOF
rax = 0x0000000000600980
rip = 0x0000000000400510
rax = 0x0000000000600980
rip = 0x000000000040056e
0x30
EOF
RUN
NAME=debug stepback from caller
FILE=bins/elf/analysis/calls_x64
ARGS=-d -e dbg.bpsysign=true
CMDS=<<EOF
wao nop @ 0x00400529
db @ main
db @ 0x0040057c
dc
dts+
dc
dsb
dsb
dr rip
EOF
EXPECT=<<EOF
rip = 0x000000000040053b
EOF
RUN