rizin/test/db/cmd/cmd_k
Anton Kochkov 788fdb3d8e
Extracting types handling into RzType (librz/type) ##refactor (#896)
* RzType introduction
* Move format processing to RzTypes from RzUtil
* Rename RzType to RzTypeDB
* Join RzType and RzAnalysis noreturn functions
* Add noreturn column in `aflt` output
* Remove D (disassembly) pf tests
* Fix `tn` test
* Add function noreturn serialization
* Modify meaningless type test
* Fix wrongly written `Cf` test
* Fix `za t` (zignature type) command
* Fix signature type test
2021-04-06 18:04:00 +08:00

102 lines
2 KiB
Text

NAME=1: k syscall/
FILE=malloc://512
CMDS=<<EOF
e asm.arch=x86
e asm.bits=64
e asm.os=linux
k syscall/0x80.4
EOF
EXPECT=<<EOF
stat
EOF
RUN
NAME=2: k syscall/
FILE=malloc://512
CMDS=<<EOF
e asm.arch=x86
e asm.bits=64
e asm.os=linux
k syscall/stat
EOF
EXPECT=<<EOF
0x80,4,2,
EOF
RUN
NAME=3: test kj
FILE=bins/elf/ioli/crackme0x03
ARGS=-A
CMDS=<<EOF
kj~{}
EOF
EXPECT=<<EOF
{
"analysis": {
"cur_cmd": [
"spec",
"gcc=spec",
"spec.gcc.c=char",
"spec.gcc.d=int",
"spec.gcc.f=float",
"spec.gcc.g=double",
"spec.gcc.ld=long int",
"spec.gcc.lf=double",
"spec.gcc.li=long int",
"spec.gcc.lld=long long int",
"spec.gcc.lli=long long int",
"spec.gcc.llu=unsigned long long int",
"spec.gcc.lu=unsigned long int",
"spec.gcc.p=void *",
"spec.gcc.s=const char *",
"spec.gcc.u=unsigned int",
"cc",
"borland=cc",
"cc.borland.arg0=eax",
"cc.borland.arg1=edx",
"cc.borland.arg2=ecx",
"cc.borland.argn=stack_rev",
"cc.cdecl-fastcall-ms.argn=stack",
"cc.cdecl-fastcall-ms.ret=eax",
"cc.cdecl-thiscall-ms.arg0=ecx",
"cc.cdecl.argn=stack",
"cc.cdecl.ret=eax",
"cc.fastcall.arg0=ecx",
"cc.fastcall.arg1=edx",
"cc.fastcall.argn=stack",
"cc.fastcall.ret=eax",
"cc.optlink.arg0=eax",
"cc.optlink.arg1=edx",
"cc.optlink.arg2=ecx",
"cc.optlink.argn=stack",
"cc.optlink.ret=eax",
"cc.pascal.argn=stack_rev",
"cc.reg.arg0=eax",
"cc.reg.arg1=ebx",
"cc.reg.arg2=ecx",
"cc.reg.arg3=edx",
"cc.reg.ret=eax",
"cc.stdcall.argn=stack",
"cc.stdcall.ret=eax",
"cc.watcom.arg0=eax",
"cc.watcom.arg1=edx",
"cc.watcom.arg2=ebx",
"cc.watcom.arg3=ecx",
"cc.watcom.argn=stack",
"cdecl=cc",
"cdecl-thiscall-ms=cc",
"default.cc=cdecl",
"fastcall=cc",
"optlink=cc",
"pascal=cc",
"reg=cc",
"stdcall=cc",
"watcom=cc",
"zigns",
"classes",
"noreturn"
]
}
}
EOF
RUN