From e0d00bc749e6b35f45c3497a55c9d2b0606b33d2 Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Wed, 29 Jun 2011 22:19:24 +0000
Subject: gdb/ 	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.

---
 gdb/dwarf2read.c | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'gdb/dwarf2read.c')

diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index b17d74d..e078c62 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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)
-- 
cgit v1.1