dwarves: check if the current pos is NULL in cu__for_each_function
To match cu__for_each_type handling of entries set with cu__table_nullify_type_entry. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
fa82c1b623
commit
7cf49c14e7
|
@ -60,7 +60,8 @@ struct ptr_table {
|
|||
for (id = 0, pos = tag__function(cu->tags_table.entries[id]); \
|
||||
id < cu->tags_table.nr_entries; \
|
||||
pos = tag__function(cu->tags_table.entries[++id])) \
|
||||
if (pos->proto.tag.tag != DW_TAG_subprogram) \
|
||||
if (pos == NULL || \
|
||||
pos->proto.tag.tag != DW_TAG_subprogram) \
|
||||
continue; \
|
||||
else
|
||||
|
||||
|
|
Loading…
Reference in New Issue