rizin/test/db/archos/linux-x64/dbg_de
Khairul Azhar Kasmiran 4cdad14ccd
Remove dk 9 from debug tests (#3070)
* Add `dk 9` test
2022-10-08 16:44:22 +08:00

33 lines
398 B
Text

NAME=de reg read
FILE=bins/elf/hello_world
ARGS=-d
CMDS=<<EOF
dcu main+8
de r r rsp
dec
.drf
s rip
# the call instruction reads rsp, then we should be inside strlen
pi 1
EOF
EXPECT=<<EOF
jmp qword [reloc.strlen]
EOF
RUN
NAME=de reg write
FILE=bins/elf/hello_world
ARGS=-d
CMDS=<<EOF
dcu main
de w r rax
dec
.drf
s rip-7
pi 2
EOF
EXPECT=<<EOF
lea rax, str.Hello
mov qword [rbp - 0x18], rax
EOF
RUN