rpms/gdb/devel gdb-6.3-xfree-20050922.patch, NONE, 1.1 gdb.spec, 1.157, 1.158

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Sep 22 21:55:35 UTC 2005


Author: jjohnstn

Update of /cvs/dist/rpms/gdb/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv29920

Modified Files:
	gdb.spec 
Added Files:
	gdb-6.3-xfree-20050922.patch 
Log Message:

* Thu Sep 22 2005 Jeff Johnston <jjohnstn at redhat.com>   6.3.0.0-1.69
- Bump up release number.

* Thu Sep 22 2005 Jeff Johnston <jjohnstn at redhat.com>   6.3.0.0-1.66
- Remove extraneous xfree.




gdb-6.3-xfree-20050922.patch:
 symtab.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

--- NEW FILE gdb-6.3-xfree-20050922.patch ---
2005-09-22  Bastien Nocera  <bnocera at redhat.com>

	* symtab.c (find_line_pc_range): Don't free up pc_list
	unconditionally as it may not be allocated.

--- gdb-6.3/gdb/symtab.c.fix	2005-09-22 16:24:06.000000000 -0400
+++ gdb-6.3/gdb/symtab.c	2005-09-22 16:26:17.000000000 -0400
@@ -2427,9 +2427,10 @@ find_line_pc_range (struct symtab_and_li
   /* FIXME: have to handle ctors/dtors where line equates to multiple
             pc ranges.  */
   if (startaddr == 0)
-    startaddr = pc_list[0];
-
-  xfree (pc_list);
+    {
+      startaddr = pc_list[0];
+      xfree (pc_list);
+    }
 
   /* This whole function is based on address.  For example, if line 10 has
      two parts, one from 0x100 to 0x200 and one from 0x300 to 0x400, then


Index: gdb.spec
===================================================================
RCS file: /cvs/dist/rpms/gdb/devel/gdb.spec,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -r1.157 -r1.158
--- gdb.spec	7 Sep 2005 18:57:23 -0000	1.157
+++ gdb.spec	22 Sep 2005 21:55:32 -0000	1.158
@@ -11,7 +11,7 @@
 Version: 6.3.0.0
 
 # The release always contains a leading reserved number, start it at 0.
-Release: 1.65
+Release: 1.69
 
 License: GPL
 Group: Development/Debuggers
@@ -243,6 +243,9 @@
 # Add readnever option
 Patch164: gdb-6.3-readnever-20050907.patch
 
+# Remove extraneous xfree
+Patch165: gdb-6.3-xfree-20050922.patch
+
 %ifarch ia64
 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu libunwind >= 0.96-3
 %else
@@ -339,6 +342,7 @@
 %patch162 -p1
 %patch163 -p1
 %patch164 -p1
+%patch165 -p1
 
 # Change the version that gets printed at GDB startup, so it is RedHat
 # specific.
@@ -507,6 +511,12 @@
 # don't include the files in include, they are part of binutils
 
 %changelog
+* Thu Sep 22 2005 Jeff Johnston	<jjohnstn at redhat.com>	6.3.0.0-1.69
+- Bump up release number.
+
+* Thu Sep 22 2005 Jeff Johnston	<jjohnstn at redhat.com>	6.3.0.0-1.66
+- Remove extraneous xfree.
+
 * Wed Sep 07 2005 Jeff Johnston	<jjohnstn at redhat.com>	6.3.0.0-1.65
 - Bump up release number.
 




More information about the fedora-cvs-commits mailing list