radare2/test/new/db/cmd/cmd_agC
2020-01-17 17:47:00 +01:00

42 lines
772 B
Plaintext

NAME=agCj entry0 imports libc_start_main
FILE=../bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agCj~{0}
EOF
EXPECT={"name":"entry0", "size":46,"imports":["reloc.__libc_start_main"]}
RUN
NAME=agCd entry0 imports libc_start_main
FILE=../bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agCd~2110
EOF
EXPECT=<<EOF
"0x00002110" [label="entry0" URL="entry0/0x00002110"];
"0x00002110" -> "0x00008f30" [color="#61afef" URL="reloc.__libc_start_main/0x00008f30"];
EOF
RUN
NAME=agCd contains label for main
FILE=../bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agCd~label="main"
EOF
EXPECT=<<EOF
"0x00002050" [label="main" URL="main/0x00002050"];
EOF
RUN
NAME=agC function names are resovled properly
FILE=../bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null
agC~unk.
echo end
EOF
EXPECT=end
RUN