rizin/test/db/formats/pe/export_names
Riccardo Schirone 1c78aee3cd
Convert i commands to rzshell (#1238)
* Start to create some RzBinObject specific API

Adding some unit tests

Fix for new relocs storage system

Fix test_bin unit test for oob-write

* Add `iA` command to newshell

Add `ie`/`iee` commands

Add support for `is`/`iE` commands

Add support for `ii` command

Add support for `il` command

Add support for `iM` command

Add support for `ir` command

Add support for `iS`/`iSS` commands

Add support for `iz` command

Add support for `i` command

Add support for `ic` command

Add support for `iC` command

Add support for `ih` and `iHH` commands

Add support for `iI` command

Add support for `iL` command

Fix descriptions of commands already converted

Add support for `idp` commands

Add support for `iD` command

Add support for `im` commands

Add support for `iR` command

Add support for `it` command

Add support for `iV` commands

Add support for `iw` command

Add support for `ix` commands

Add support for `iZ` command

Add support for `ik` command

Add support for `is.` command

Add support for `iS.` command

Reduce arguments in print_arch

Few Doxygen and ownership annotations

Add support for `iS=` command

Add support for `izz` and `izzz` commands

Add support for `ib` command

Add support for `ic*` command

Put section flags as the last field of the table

* Proper language detection.

* Rewritten blang.c

* implemented `icc/icm/icf <class name>`

* ignore blocks when printing langs

Remove num from `iA` output

* Fixed flags on java and added class column

Add support for `ia` commands

Fix `iCj` command

* RzBin: add rz_bin_object_sections_mapping_list API

* Fix rz-bin for new API

Remove unused va var in rz-bin.c

Fix `iA`/`-A` output

* implemented classdump_cpp

* Support namespaces

Use `icc`, `icl` does not exist anymore

Update output of broken tests for `icc`

Add `rz_return_*()` asserts in new `*_print()` functions

* Provide rz_core_bin_print API

* Select which parts to print also based on the mode

* Return bool from all `rz_core_bin_*_print()` API

* Use RzBinFile in new `rz_core_bin_*_print()` API

* Restore `dbg_dmi` test

* Remove oldshell handlers for `i` commands

* Remove `ieq` call in rizin, not needed

* Allow NULL `bf` in `rz_cmd_info_handler()`

* Re-add support for RZ_BIN_PREFIX for symbols/sections/segments/imports/relocs

* Move `ib` command to `obR`

* Show 'N/A' in `i` command when info are not available

* Assert on bf->o, just to be sure

* Make error messages clearer in `idp` commands

Co-authored-by: wargio <wargio@libero.it>
Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
2021-09-04 22:37:05 +08:00

33 lines
1.1 KiB
Text

NAME=PE: export function names
FILE=bins/pe/Lab05-01.dll
CMDS=iE
EXPECT=<<EOF
nth paddr vaddr bind type size lib name
----------------------------------------------------------------
1 0x0000cc47 0x1000d847 GLOBAL FUNC 0 xdll.dll InstallRT
2 0x0000d2c1 0x1000dec1 GLOBAL FUNC 0 xdll.dll InstallSA
3 0x0000dc92 0x1000e892 GLOBAL FUNC 0 xdll.dll InstallSB
4 0x00006425 0x10007025 GLOBAL FUNC 0 xdll.dll PSLIST
5 0x0000c330 0x1000cf30 GLOBAL FUNC 0 xdll.dll ServiceMain
6 0x000072cb 0x10007ecb GLOBAL FUNC 0 xdll.dll StartEXS
7 0x0000e805 0x1000f405 GLOBAL FUNC 0 xdll.dll UninstallRT
8 0x0000de05 0x1000ea05 GLOBAL FUNC 0 xdll.dll UninstallSA
9 0x0000e538 0x1000f138 GLOBAL FUNC 0 xdll.dll UninstallSB
EOF
RUN
NAME=PE: export function names SIMPLE
FILE=bins/pe/Lab05-01.dll
CMDS=iEq
EXPECT=<<EOF
0x1000d847 0 xdll.dll InstallRT
0x1000dec1 0 xdll.dll InstallSA
0x1000e892 0 xdll.dll InstallSB
0x10007025 0 xdll.dll PSLIST
0x1000cf30 0 xdll.dll ServiceMain
0x10007ecb 0 xdll.dll StartEXS
0x1000f405 0 xdll.dll UninstallRT
0x1000ea05 0 xdll.dll UninstallSA
0x1000f138 0 xdll.dll UninstallSB
EOF
RUN