dwarf_loader: Add comment on why we can't ignore lexblocks

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-07-19 18:11:46 -03:00
parent 9d0a7ee0c3
commit dca86fb8c2
1 changed files with 3 additions and 0 deletions

View File

@ -1750,6 +1750,9 @@ static int die__process_function(Dwarf_Die *die, struct ftype *ftype,
tag = die__create_new_inline_expansion(die, lexblock, cu, conf);
break;
case DW_TAG_lexical_block:
// lexblocks can contain types that are then referenced from outside.
// Thus we can't ignore them without more surgery, i.e. by adding code
// to just process types inside lexblocks, leave this for later.
if (die__create_new_lexblock(die, cu, lexblock, conf) != 0)
goto out_enomem;
continue;