Print call convention once in afi ##anal (#18157)

This commit is contained in:
pancake 2021-01-03 10:09:08 +01:00 committed by GitHub
parent 2879c582af
commit 73aab852fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -3103,9 +3103,6 @@ static int fcn_print_legacy(RCore *core, RAnalFunction *fcn) {
}
r_cons_printf ("\ncyclomatic-cost: %d", r_anal_function_cost (fcn));
r_cons_printf ("\ncyclomatic-complexity: %d", r_anal_function_complexity (fcn));
if (!R_STR_ISEMPTY (fcn->cc)) {
r_cons_printf ("\ncc: %s", fcn->cc);
}
r_cons_printf ("\nbits: %d", fcn->bits);
r_cons_printf ("\ntype: %s", r_anal_fcntype_tostring (fcn->type));
if (fcn->type == R_ANAL_FCN_TYPE_FCN || fcn->type == R_ANAL_FCN_TYPE_SYM) {

View File

@ -1502,7 +1502,7 @@ aaa
afi @@@F~?pascal
EOF
EXPECT=<<EOF
130
65
EOF
RUN
@ -2536,7 +2536,6 @@ stackframe: 0
call-convention: amd64
cyclomatic-cost: 4
cyclomatic-complexity: 0
cc: amd64
bits: 64
type: fcn [NEW]
num-bbs: 2
@ -2596,7 +2595,6 @@ stackframe: 0
call-convention: amd64
cyclomatic-cost: 6
cyclomatic-complexity: 1
cc: amd64
bits: 64
type: fcn [NEW]
num-bbs: 2
@ -2672,7 +2670,6 @@ stackframe: 0
call-convention: amd64
cyclomatic-cost: 7
cyclomatic-complexity: 0
cc: amd64
bits: 64
type: fcn [NEW]
num-bbs: 2
@ -2756,7 +2753,6 @@ stackframe: 0
call-convention: amd64
cyclomatic-cost: 7
cyclomatic-complexity: 0
cc: amd64
bits: 64
type: fcn [NEW]
num-bbs: 3
@ -2849,7 +2845,6 @@ stackframe: 0
call-convention: amd64
cyclomatic-cost: 9
cyclomatic-complexity: 0
cc: amd64
bits: 64
type: fcn [NEW]
num-bbs: 4

View File

@ -7,7 +7,7 @@ afi.
afb.
EOF
EXPECT=<<EOF
34
33
entry0
0x1000011e8 0x100001211 00:0000 41 j 0x100001216 f 0x100001211
EOF