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:
parent
aee6808c47
commit
7f0a8484dc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue