rpms/gdb/devel gdb-6.8-gcc35998-ada-memory-trash.patch, NONE, 1.1 gdb-6.7-testsuite-stable-results.patch, 1.2, 1.3 gdb.spec, 1.289, 1.290

Jan Kratochvil (jkratoch) fedora-extras-commits at redhat.com
Thu May 22 20:38:30 UTC 2008


Author: jkratoch

Update of /cvs/pkgs/rpms/gdb/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25185

Modified Files:
	gdb-6.7-testsuite-stable-results.patch gdb.spec 
Added Files:
	gdb-6.8-gcc35998-ada-memory-trash.patch 
Log Message:
* Thu May 22 2008 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.8-9
- Fix memory trashing on binaries from GNAT/Ada (workaround GCC PR 35998).


gdb-6.8-gcc35998-ada-memory-trash.patch:

--- NEW FILE gdb-6.8-gcc35998-ada-memory-trash.patch ---
--- ./gdb/dwarf2read.c	4 May 2008 17:27:01 -0000	1.260
+++ ./gdb/dwarf2read.c	4 May 2008 18:26:20 -0000
@@ -6754,7 +6754,14 @@ dwarf2_attr (struct die_info *die, unsig
   for (i = 0; i < die->num_attrs; ++i)
     {
       if (die->attrs[i].name == name)
-	return &die->attrs[i];
+        {
+	  /* GCC PR ada/35998 workaround.  */
+	  if (name == DW_AT_byte_size
+	      && DW_UNSND (&die->attrs[i]) == 0xffffffff)
+	    return NULL;
+
+	  return &die->attrs[i];
+	}
       if (die->attrs[i].name == DW_AT_specification
 	  || die->attrs[i].name == DW_AT_abstract_origin)
 	spec = &die->attrs[i];

gdb-6.7-testsuite-stable-results.patch:

Index: gdb-6.7-testsuite-stable-results.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.7-testsuite-stable-results.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- gdb-6.7-testsuite-stable-results.patch	22 Apr 2008 22:13:56 -0000	1.2
+++ gdb-6.7-testsuite-stable-results.patch	22 May 2008 20:37:43 -0000	1.3
@@ -121,26 +121,3 @@
  
    if (args == NULL)
      error_no_arg (_("one or more choice numbers"));
-
-
-
-2008-04-21  Jan Kratochvil  <jan.kratochvil at redhat.com>
-
-	Workaround GCC PR ada/35998.
-	* ada-lang.c (to_fixed_record_type): Error out on invalid length of the
-	type TYPE0.
-
---- ./gdb/ada-lang.c	6 Apr 2008 08:56:36 -0000	1.137
-+++ ./gdb/ada-lang.c	20 Apr 2008 21:47:05 -0000
-@@ -7313,6 +7313,11 @@ to_fixed_record_type (struct type *type0
- {
-   struct type *templ_type;
- 
-+  /* GCC PR ada/35998 workaround.  */
-+  if (TYPE_LENGTH (type0) == 0xffffffff)
-+    error (_("Type %s has invalid length -1, check your GCC"),
-+	   TYPE_NAME (type0));
-+
-   if (TYPE_FLAGS (type0) & TYPE_FLAG_FIXED_INSTANCE)
-     return type0;
- 


Index: gdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb.spec,v
retrieving revision 1.289
retrieving revision 1.290
diff -u -r1.289 -r1.290
--- gdb.spec	15 May 2008 23:27:24 -0000	1.289
+++ gdb.spec	22 May 2008 20:37:43 -0000	1.290
@@ -13,7 +13,7 @@
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 8%{?_with_upstream:.upstream}%{?dist}
+Release: 9%{?_with_upstream:.upstream}%{?dist}
 
 License: GPLv3+
 Group: Development/Debuggers
@@ -355,6 +355,9 @@
 # Silence memcpy check which returns false positive (sparc64)
 Patch317: gdb-6.8-sparc64-silence-memcpy-check.patch
 
+# Fix memory trashing on binaries from GCC Ada (workaround GCC PR 35998).
+Patch318: gdb-6.8-gcc35998-ada-memory-trash.patch
+
 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext
 BuildRequires: flex bison sharutils expat-devel
 Requires: readline
@@ -532,6 +535,7 @@
 %patch315 -p1
 %patch316 -p1
 %patch317 -p1
+%patch318 -p1
 %patch124 -p1
 
 find -name "*.orig" | xargs rm -f
@@ -781,6 +785,9 @@
 %endif
 
 %changelog
+* Thu May 22 2008 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.8-9
+- Fix memory trashing on binaries from GNAT/Ada (workaround GCC PR 35998).
+
 * Thu May 15 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 6.8-8
 - Silence memcpy check which returns false positive (sparc64)
 




More information about the fedora-extras-commits mailing list