rizin/test/db/cmd/cmd_dr
Florian Märkl 3c2e4bf63a
Rewrite ar and dr with newshell (#2006)
* Show group-level details of commands

Details can be defined at either a group command or its subcommand of
the same name. If define on group-level it will also be shown in the
group help without needing ??.

* Fix > $ redirection for errored command and leak

* Rewrite ar and dr commands with newshell

Breaking changes:
ar* => arf, ar- => arf-, ar. => ar*
ar, => art, ar? => arq
ar0 => ara0, arb => arab, ars => araS
arC => arpC
arn => arR
art => arT
arf => arF
Removed: drm, aer
2021-12-06 19:02:43 +01:00

26 lines
346 B
Text

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