[CLASSES]: Check if current_function is null

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-11-18 16:54:25 -02:00
parent 46158e90a6
commit c9e858a4d1
1 changed files with 3 additions and 0 deletions

View File

@ -1137,6 +1137,9 @@ static void cu__process_die(Dwarf *dwarf, Dwarf_Die *die)
uint32_t size = high_pc - low_pc;
struct inline_expansion *exp;
if (cu__current_function == NULL)
goto next_sibling;
if (size == 0) {
Dwarf_Addr base, start, end;
ptrdiff_t offset = 0;