rizin/test/db/io/ff
Riccardo Schirone 144ba639dc
Convert s commands to newshell (#375)
* Rename `sj`/`s*` and move them under `sH`. Remove `s=`
* Rename `s-*` to `sH-`
* Use `sd` for "seek delta", which moves relative to the current offset
* Enforce <cmd> <arg> syntax. So no more `s+16` but `s +16`. Command
  `sHr` is for redo history, `sHu` for undo history. If one wants to move
  relative to the current address, they need to do `sd +10`/`sd -10`.
* Remove `ss` commands in favour of `cmd.seek.silent`. This was anyway
  used mainly for scripts, so no need to replicate all `s` commands
  under `ss`.

Change a bit rz_core_seek API to avoid dupped entries in seek history.
2021-01-20 10:30:20 +08:00

57 lines
646 B
Text

NAME=io ff
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=p8 4 @ 0x999999999
EXPECT=<<EOF
ffffffff
EOF
RUN
NAME=io ff based on seek
FILE=bins/pe/b.exe
CMDS=<<EOF
s 0x0040200b
p8 10
sd +1
p8 10
EOF
EXPECT=<<EOF
00000000000000000000
00000000000000000000
EOF
RUN
NAME=presection read
FILE=bins/mach0/ls-ios
CMDS=<<EOF
s 0x8000
p8 16
s 0x8000-1
p8 16
EOF
EXPECT=<<EOF
00009de404108de2014080e2042181e0
0000009de404108de2014080e2042181
EOF
RUN
NAME=pre-0x0-read1
FILE=malloc://32
CMDS=<<EOF
e io.va=true
p8 2 @ -1
EOF
EXPECT=<<EOF
ff00
EOF
RUN
NAME=pre-0x0-read2
FILE=malloc://32
CMDS=<<EOF
e io.va=true
p8 4 @ -2
EOF
EXPECT=<<EOF
ffff0000
EOF
RUN