rizin/test/db/cmd/seekbug
billow 40ca22202b
Refactor rz_core_print_disasm_json (#2746)
* Split `rz_core_print_disasm_json` as: `rz_core_print_disasm_json` and `rz_core_disasm`
* Use `rz_str_enc_string_as_type` in `ds_init`
* Refactor `rz_core_print_disasm` and `rz_core_handle_backwards_disasm`
* Add `rz_core_asm_bb_middle`
* Move global `disasm_texts` to `RzDisasmState`
* Rewrite `core_analysis_bytes_standard` with `rz_core_analysis_bytes`
* Add `test_rz_core_print_disasm` and `test_rz_core_analysis_bytes`
* Rewrite `rz_core_print_disasm` with `RzCmdStateOutput`
* `pdi` -> `pdq` in tests
* `pdi` -> `pDq` in tests
* `pid` -> `pdq` in tests
* `pId` -> `pDq` in tests
* `pij` -> `pdj` in tests
* `pIj` -> `pDj` in tests
* `pdeqq` -> `pdeQ` in tests
* Remove `pDJ` from `test/db/json/`
2022-07-09 08:10:06 +08:00

78 lines
660 B
Text

NAME=seekbug pi -x
FILE=malloc://1024
CMDS=<<EOF
e scr.null=true
s 0x200
pi -3
e scr.null=false
s
EOF
EXPECT=<<EOF
0x200
EOF
RUN
NAME=seekbug pdq -x
FILE=malloc://1024
CMDS=<<EOF
e scr.null=true
s 0x200
pdq -3
e scr.null=false
s
EOF
EXPECT=<<EOF
0x200
EOF
RUN
NAME=seekbug pd -x
FILE=malloc://1024
CMDS=<<EOF
e scr.null=true
s 0x200
pd -3
e scr.null=false
s
EOF
EXPECT=<<EOF
0x200
EOF
RUN
NAME=seekbug px -x
FILE=malloc://1024
CMDS=<<EOF
e scr.null=true
s 0x200
px -3
e scr.null=false
s
EOF
EXPECT=<<EOF
0x200
EOF
RUN
NAME=seekbug s ]
FILE=malloc://1024
CMDS=<<EOF
s 0x64
s
s unkval
s
s ]
s
s [
s
s [0x0]
s
EOF
EXPECT=<<EOF
0x64
0x64
0x64
0x64
0x0
EOF
RUN