diff --git a/gdb-6.3-type-fix-20041213.patch b/gdb-6.3-type-fix-20041213.patch new file mode 100644 index 0000000..9f6fecc --- /dev/null +++ b/gdb-6.3-type-fix-20041213.patch @@ -0,0 +1,27 @@ +2004-12-13 Jeff Johnston + + * dwarf2read.c (read_type_die): Ensure that structures, unions, + enumerations, and base types create symbols. + +--- gdb-6.3/gdb/dwarf2read.c.fix2 Mon Dec 13 19:44:08 2004 ++++ gdb-6.3/gdb/dwarf2read.c Mon Dec 13 20:00:42 2004 +@@ -7178,9 +7178,11 @@ read_type_die (struct die_info *die, str + case DW_TAG_structure_type: + case DW_TAG_union_type: + read_structure_type (die, cu); ++ process_structure_scope (die, cu); + break; + case DW_TAG_enumeration_type: + read_enumeration_type (die, cu); ++ process_enumeration_scope (die, cu); + break; + case DW_TAG_subprogram: + case DW_TAG_subroutine_type: +@@ -7215,6 +7217,7 @@ read_type_die (struct die_info *die, str + break; + case DW_TAG_base_type: + read_base_type (die, cu); ++ new_symbol (die, die->type, cu); + break; + default: + complaint (&symfile_complaints, "unexepected tag in read_type_die: '%s'", diff --git a/gdb.spec b/gdb.spec index 0b0f8fa..27e36b9 100644 --- a/gdb.spec +++ b/gdb.spec @@ -131,6 +131,9 @@ Patch113: gdb-6.3-threaded-watchpoints-20041213.patch # Multiple patches to ia64 backtrace Patch114: gdb-6.3-ia64-backtrace-20041213.patch +# Fix to ensure types are visible +Patch115: gdb-6.3-type-fix-20041213.patch + %ifarch ia64 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu libunwind >= 0.96-3 %else @@ -178,6 +181,7 @@ and printing their data. %patch112 -p1 %patch113 -p1 %patch114 -p1 +%patch115 -p1 %patch50 -p1