Make dbg.stepback test invariant to env (#3176)

This commit is contained in:
Khairul Azhar Kasmiran 2022-11-10 19:32:08 +08:00 committed by GitHub
parent 3a29179947
commit 5611bc3c79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,22 +3,20 @@ FILE=bins/elf/analysis/ls-linux-x86_64-zlul
ARGS=-d -e dbg.bpsysign=true
CMDS=<<EOF
db @ main
db @ 0x004028fe
db @ 0x004028b6
dc
dts+
dc
dsb
dsb
dr rbx
dr rcx
dr r12
dr rip
$rsp_after=$`dr rsp`
2dsb
dr rip
?v `dr rsp~[1]`-`$rsp_after~[0]`
EOF
EXPECT=<<EOF
rbx = 0x0000000000000001
rcx = 0x00736c6974756572
r12 = 0x0000000000404870
rip = 0x00000000004028f9
rip = 0x00000000004028b6
rip = 0x00000000004028af
0x398
EOF
RUN