dwarf_loader: Ignore top level DW_TAG_dwarf_procedure tags

We also ignore it when it appears inside a DW_TAG_subprogram, so just
don't emit the warning that it is not supported when it appears in the
top level.

So far it doesn't look useful for what these tools do, need to revisit
it when the need arises.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2020-10-02 16:58:26 -03:00
parent aee6808c47
commit 7f0a8484dc
1 changed files with 4 additions and 1 deletions

View File

@ -1738,7 +1738,10 @@ static int die__process_unit(Dwarf_Die *die, struct cu *cu)
return -ENOMEM;
if (tag == &unsupported_tag) {
tag__print_not_supported(dwarf_tag(die));
// XXX special case DW_TAG_dwarf_procedure, appears when looking at a recent ~/bin/perf
// Investigate later how to properly support this...
if (dwarf_tag(die) != DW_TAG_dwarf_procedure)
tag__print_not_supported(dwarf_tag(die));
continue;
}