radare2/test/new/db/cmd/cmd_idp
2019-12-08 15:31:14 +01:00

28 lines
486 B
Plaintext

NAME=idp flags
FILE=../bins/pdb/SimplePDB.exe
CMDS=<<EOF
idp ../bins/pdb/SimplePDB.pdb
fi 1 @ 0x00401000
fi 1 @ 0x00401010
EOF
EXPECT=<<EOF
0x00401000 4096 section..text
0x00401000 0 pdb.void___cdecl_SomeCoolFunction_void
0x00401010 0 pdb._main
EOF
RUN
NAME=idp bin state bug (#9441)
FILE=../bins/pdb/SimplePDB.exe
CMDS=<<EOF
e asm.bits
idpi ../bins/pdb/SimplePDB.pdb~SomeCoolFunction
e asm.bits
EOF
EXPECT=<<EOF
32
0x00401000 2 .text void __cdecl SomeCoolFunction(void)
32
EOF
RUN