rizin/test/db/cmd/cmd_pxd
billow 0908b65bc3
Convert px[ dDhHwWqQol] to rzshell
* `pxd` -> `pxd 4`
* `pxd<N> [len]` -> `pxd <N> [len]`
* expose APIs:
- `rz_core_print_cmp`
- `rz_core_print_dump`
- `rz_core_print_hexdump_`
- `rz_core_print_hexdump_byline`
* test for `pxW` `pxH`
* move `void rz_print_section` -> `const char *rz_print_section`
* `pxd` -> `pxd[ hwq]`
* `pxc`
* `pxAv` -> `pxAl`
* `pxt.` -> removed ?
* `px/` -> keep
* `pxf` -> TODO: not found old code ?
2022-08-04 09:11:22 +08:00

95 lines
No EOL
2 KiB
Text

NAME=pxd
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
pxd 0x10
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 85 72 -119 -27 65 87 65 86 65 85 65 84 83 72 -127 -20 UH..AWAVAUATSH..
EOF
RUN
NAME=pxdh
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
pxdh 0x10
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 18517 -6775 22337 22081 21825 21569 18515 -4991 UH..AWAVAUATSH..
EOF
RUN
NAME=pxdw
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
pxdw 0x10
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 -443987883 1447122753 1413567809 -327071661 UH..AWAVAUATSH..
EOF
RUN
NAME=pxdq
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
pxdq 0x10
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 6215344901283465301 -1404762086029830847 UH..AWAVAUATSH..
EOF
RUN
NAME=pxdw arg
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
pxdw 0x10
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 -443987883 1447122753 1413567809 -327071661 UH..AWAVAUATSH..
EOF
RUN
NAME=pxdw no arg
FILE==
CMDS=<<EOF
b 0x10
wx 554889e54157415641554154534881ec
pxdw
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 -443987883 1447122753 1413567809 -327071661 UH..AWAVAUATSH..
EOF
RUN
NAME=pxd zero arg
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
pxd 0
EOF
EXPECT=<<EOF
EOF
RUN
NAME=pxdw negative arg
FILE==
CMDS=<<EOF
wx 554889e54157415641554154534881ec
s 8
pxdw -8
EOF
EXPECT=<<EOF
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x00000000 -443987883 1447122753 UH..AWAV
EOF
RUN