rizin/test/db/cmd/cmd_pointer
Quentin Minster eb78e75cd4
Refactor the pointer command to use the API (#3788)
* Add test for pointer read command `*`

Test for `asm.bits=8` uses `asm.arch=6502` because `asm.bits=8` is
unsupported for the default arch.

* Fix pointer command `*` broken since move from `?` to `%` ##shell

* Refactor to use appropriate existing API in `num_callback`
2023-08-26 02:12:47 +00:00

18 lines
245 B
Text

NAME=pointer read
FILE=malloc://1024
CMDS=<<EOF
wv8 0xdeadbeefdeadbeef
*0
*0 @e:asm.bits=64
*0 @e:asm.bits=32
*0 @e:asm.bits=16
*0 @e:asm.arch=6502,asm.bits=8
EOF
EXPECT=<<EOF
0xdeadbeefdeadbeef
0xdeadbeefdeadbeef
0xdeadbeef
0xbeef
0xef
EOF
RUN