rizin/test/db/cmd/cmd_dr
Dhruv Maroo d6ac6b93ef
Fix changing rflags register using dr (#1794)
* Use the numerical value string as parameter of `rz_core_debug_reg_set()`
* Add test for changing rflags using dr
* Add test for changing rflags using ar
2021-10-04 17:51:38 +08:00

26 lines
326 B
Text

NAME=drrj color
FILE==
ARGS=-a x86 -b 32 -m 0x10000
CMDS=<<EOF
e scr.color=1
dr ebx=0x10
drrj~{2}
EOF
EXPECT=<<EOF
{"role":"A1","reg":"ebx","value":"10","refstr":"16 ebx"}
EOF
RUN
NAME=dr rflags
FILE==
ARGS=-a x86 -b 64 -m 0x10000
CMDS=<<EOF
dr rflags
dr rflags=0x137
dr rflags
EOF
EXPECT=<<EOF
0x00000000
0x00000137
EOF
RUN