rizin/test/db/formats/pe/hellocxx
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

30 lines
1.1 KiB
Text

NAME=PE: hello cxx - entry dis
FILE=bins/pe/hellocxx-mingw32.exe
CMDS=?v entry0; e asm.bytes=true; pdq 4
EXPECT=<<EOF
0x401280
0x00401280 entry0:
0x00401280 55 push ebp
0x00401281 89e5 mov ebp, esp
0x00401283 83ec08 sub esp, 8
0x00401286 c7042401000000 mov dword [esp], 1
EOF
RUN
NAME=PE: hello cxx - sections
FILE=bins/pe/hellocxx-mingw32.exe
CMDS=oml
EXPECT=<<EOF
1 fd: 4 +0x00000000 0x00400400 - 0x00400fff r-- mmap.header
2 fd: 3 +0x00000000 0x00400000 - 0x004003ff r-- fmap.header
3 fd: 5 +0x00000000 0x00440c00 - 0x00440fff r-x mmap..text
4 fd: 3 +0x00000400 0x00401000 * 0x00440bff r-x fmap..text
5 fd: 6 +0x00000000 0x00441200 - 0x00441fff rw- mmap..data
6 fd: 3 +0x00040000 0x00441000 - 0x004411ff r-- fmap..data
7 fd: 7 +0x00000000 0x00444c00 - 0x00444fff r-- mmap..rdata
8 fd: 3 +0x00040200 0x00442000 - 0x00444bff r-- fmap..rdata
9 fd: 8 +0x00000000 0x00445000 - 0x00446fff rw- mmap..bss
10 fd: 9 +0x00000000 0x00447800 - 0x00447fff rw- mmap..idata
11 fd: 3 +0x00042e00 0x00447000 - 0x004477ff r-- fmap..idata
EOF
RUN