|
@@ -35,6 +35,7 @@ struct arch {
|
|
const char *name;
|
|
const char *name;
|
|
struct {
|
|
struct {
|
|
char comment_char;
|
|
char comment_char;
|
|
|
|
+ char skip_functions_char;
|
|
} objdump;
|
|
} objdump;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -43,6 +44,7 @@ static struct arch architectures[] = {
|
|
.name = "arm",
|
|
.name = "arm",
|
|
.objdump = {
|
|
.objdump = {
|
|
.comment_char = ';',
|
|
.comment_char = ';',
|
|
|
|
+ .skip_functions_char = '+',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -78,7 +80,7 @@ int ins__scnprintf(struct ins *ins, char *bf, size_t size,
|
|
return ins__raw_scnprintf(ins, bf, size, ops);
|
|
return ins__raw_scnprintf(ins, bf, size, ops);
|
|
}
|
|
}
|
|
|
|
|
|
-static int call__parse(struct arch *arch __maybe_unused, struct ins_operands *ops, struct map *map)
|
|
|
|
|
|
+static int call__parse(struct arch *arch, struct ins_operands *ops, struct map *map)
|
|
{
|
|
{
|
|
char *endptr, *tok, *name;
|
|
char *endptr, *tok, *name;
|
|
|
|
|
|
@@ -90,10 +92,9 @@ static int call__parse(struct arch *arch __maybe_unused, struct ins_operands *op
|
|
|
|
|
|
name++;
|
|
name++;
|
|
|
|
|
|
-#ifdef __arm__
|
|
|
|
- if (strchr(name, '+'))
|
|
|
|
|
|
+ if (arch->objdump.skip_functions_char &&
|
|
|
|
+ strchr(name, arch->objdump.skip_functions_char))
|
|
return -1;
|
|
return -1;
|
|
-#endif
|
|
|
|
|
|
|
|
tok = strchr(name, '>');
|
|
tok = strchr(name, '>');
|
|
if (tok == NULL)
|
|
if (tok == NULL)
|