Disable epilogue unwinders on recent GCCs.
	* amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
	initialize it, return 0 on EPILOGUE_UNWIND_VALID.
	* dwarf2read.c (process_full_comp_unit): Initialize
	EPILOGUE_UNWIND_VALID.
	* i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
	initialize it, return 0 on EPILOGUE_UNWIND_VALID.
	* symtab.h (struct symtab): New field epilogue_unwind_valid.
This commit is contained in:
Jan Kratochvil
2011-06-29 22:19:24 +00:00
parent 4632c0d0ff
commit e0d00bc749
5 changed files with 29 additions and 0 deletions

View File

@ -4751,6 +4751,9 @@ process_full_comp_unit (struct dwarf2_per_cu_data *per_cu)
*/
if (cu->has_loclist && gcc_4_minor >= 0)
symtab->locations_valid = 1;
if (gcc_4_minor >= 5)
symtab->epilogue_unwind_valid = 1;
}
if (dwarf2_per_objfile->using_index)