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

24 lines
145 B
Text

NAME=t/malloc
FILE=malloc://1024
CMDS=<<EOF
s 0x666
s
s 15
s
s 034
s
s 0
sd +2
sd -1
s
sd +0x4
s
EOF
EXPECT=<<EOF
0x666
0xf
0x1c
0x1
0x5
EOF
RUN