rizin/test/db/cmd/0000
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

27 lines
869 B
Text

NAME=test va mapping
FILE=malloc://0x4000
BROKEN=1
CMDS=<<EOF
s 0
e io.va=true
b 64
wb 33
S 0 0x1000 64 64 test
s 0x1000
px 0x40
sd -16
px 0x40
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00001000 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
0x00001010 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
0x00001020 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
0x00001030 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000ff0 ffff ffff ffff ffff ffff ffff ffff ffff ................
0x00001000 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
0x00001010 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
0x00001020 3333 3333 3333 3333 3333 3333 3333 3333 3333333333333333
EOF
RUN