mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 00:05:10 +00:00
Hide the 'no calling conventions' warning and add =R0 for x86 ##anal
This commit is contained in:
parent
b903404895
commit
b9978c24f5
@ -3468,6 +3468,7 @@ static char *get_reg_profile(RAnal *anal) {
|
||||
"=PC ip\n"
|
||||
"=SP sp\n"
|
||||
"=BP bp\n"
|
||||
"=R0 ax\n"
|
||||
"=A0 ax\n"
|
||||
"=A1 bx\n"
|
||||
"=A2 cx\n"
|
||||
@ -3520,6 +3521,7 @@ static char *get_reg_profile(RAnal *anal) {
|
||||
break;
|
||||
case 32: p =
|
||||
"=PC eip\n"
|
||||
"=R0 eax\n"
|
||||
"=SP esp\n"
|
||||
"=BP ebp\n"
|
||||
"=A0 eax\n"
|
||||
@ -3633,6 +3635,7 @@ static char *get_reg_profile(RAnal *anal) {
|
||||
"# RSP stack pointer\n"
|
||||
"=PC rip\n"
|
||||
"=SP rsp\n"
|
||||
"=R0 rax\n"
|
||||
"=BP rbp\n"
|
||||
"=A0 rcx\n"
|
||||
"=A1 rdx\n"
|
||||
|
@ -436,7 +436,7 @@ static int r_core_file_do_load_for_io_plugin(RCore *r, ut64 baseaddr, ut64 loada
|
||||
}
|
||||
binfile = r_bin_cur (r->bin);
|
||||
if (r_core_bin_set_env (r, binfile)) {
|
||||
if (!sdb_const_get (r->anal->sdb_cc, "default.cc", 0)) {
|
||||
if (r->anal->verbose && !sdb_const_get (r->anal->sdb_cc, "default.cc", 0)) {
|
||||
R_LOG_WARN ("No calling convention defined for this file, analysis may be inaccurate.\n");
|
||||
}
|
||||
}
|
||||
|
@ -750,7 +750,7 @@ static const char *help_msg_ar[] = {
|
||||
"ar?", " <reg>", "Show register value",
|
||||
"arb", " <type>", "Display hexdump of the given arena",
|
||||
"arc", "[cq=] <name>", "Conditional flag registers",
|
||||
"arcc", "", "Show calling convention defined from the register profile",
|
||||
"arcc", "", "Derive calling convention from the register profile",
|
||||
"ard", " <name>", "Show only different registers",
|
||||
"arn", " <regalias>", "Get regname for pc,sp,bp,a0-3,zf,cf,of,sg",
|
||||
"aro", "", "Show old (previous) register values",
|
||||
|
@ -30,9 +30,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
machine Python v3.8.0 VM (rev 5d714034866ce1e9f89dc141fe4cc0b50cf20a8e)
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc load version37
|
||||
@ -43,9 +41,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
machine Python v3.7.0 VM (rev ae1f6af15f3e4110616801e235873e47fd7d1977)
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc load version36
|
||||
@ -56,9 +52,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
machine Python v3.6.0 VM (rev 5c4568a05a0a62b5947c55f68f9f2ecfb90a4f12)
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc load version27
|
||||
@ -69,9 +63,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
machine Python 2.7a2+ VM (rev edfed0e32cedf3b84c6e999052486a750a3f5bee)
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc symbols
|
||||
@ -82,9 +74,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
9
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc sections
|
||||
@ -101,9 +91,7 @@ EXPECT=<<EOF
|
||||
35 0x00002143 0x44 0x00002143 0x44 ---- <module>.Batman.__init__
|
||||
36 0x00002235 0x4 0x00002235 0x4 ---- <module>.Batman.sing
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc entry
|
||||
@ -114,9 +102,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
vaddr=0x0000002a paddr=0x0000002a haddr=-1 type=program
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc disasm
|
||||
@ -141,9 +127,7 @@ EXPECT=<<EOF
|
||||
| 0x0000003a 6401 load_const True
|
||||
`-> 0x0000003c 0100 pop_top
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc symbols for pyc2.7
|
||||
@ -154,9 +138,7 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
1 0x00000052 0x00000052 NONE FUNC 9 <module>.hello_world
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc disasm for 2.7
|
||||
@ -179,9 +161,7 @@ EXPECT=<<EOF
|
||||
0x00000032 01 pop_top
|
||||
0x00000033 640200 load_const None
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
EOF
|
||||
EXPECT_ERR=
|
||||
RUN
|
||||
|
||||
NAME=pyc function
|
||||
@ -207,7 +187,6 @@ EXPECT=<<EOF
|
||||
\ 0x00000036 53 return_value
|
||||
EOF
|
||||
EXPECT_ERR=<<EOF
|
||||
WARNING: No calling convention defined for this file, analysis may be inaccurate.
|
||||
Warning: set your favourite calling convention in `e anal.cc=?`
|
||||
EOF
|
||||
RUN
|
||||
|
Loading…
x
Reference in New Issue
Block a user