rpms/gdb/FC-5 gdb-6.5-bz200048-find_line_pc-segv.patch, NONE, 1.1.2.1 gdb-6.5-bz200533-ppc-solib_trampoline.patch, NONE, 1.1.2.1 gdb.spec, 1.186, 1.186.2.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sun Aug 20 12:42:37 UTC 2006


Author: jkratoch

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

Modified Files:
      Tag: private-jkratoch
	gdb.spec 
Added Files:
      Tag: private-jkratoch
	gdb-6.5-bz200048-find_line_pc-segv.patch 
	gdb-6.5-bz200533-ppc-solib_trampoline.patch 
Log Message:
* Sun Aug 20 2006 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.3.0.0-1.132_jkratoch0
- Bugfix Patch130 segv (BZ 200048).
- Do not step into the PPC solib trampolines (BZ 200533).


gdb-6.5-bz200048-find_line_pc-segv.patch:
 tui-layout.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

--- NEW FILE gdb-6.5-bz200048-find_line_pc-segv.patch ---
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200048


diff -ru gdb-6.5-orig/gdb/tui/tui-layout.c gdb-6.5-pr200048/gdb/tui/tui-layout.c
--- gdb-6.5-orig/gdb/tui/tui-layout.c	2006-08-07 21:33:42.000000000 +0200
+++ gdb-6.5-pr200048/gdb/tui/tui-layout.c	2006-08-13 02:26:39.000000000 +0200
@@ -519,13 +519,17 @@
     {
     case SRC_COMMAND:
     case SRC_DATA_COMMAND:
-      find_line_pc (cursal.symtab,
+      if (find_line_pc (cursal.symtab,
 		    TUI_SRC_WIN->detail.source_info.start_line_or_addr.line_no,
-		    &pc_list, &num_pc_values);
-      /* FIXME: What do we do with multiple pc values for ctors/dtors or
-                inlined functions?  */
-      addr = pc_list[0];
-      xfree (pc_list);
+		    &pc_list, &num_pc_values))
+	{
+	  /* FIXME: What do we do with multiple pc values for ctors/dtors or
+		    inlined functions?  */
+	  addr = pc_list[0];
+	  xfree (pc_list);
+	}
+      else
+        addr = 0;
       break;
     case DISASSEM_COMMAND:
     case SRC_DISASSEM_COMMAND:

gdb-6.5-bz200533-ppc-solib_trampoline.patch:
 minsyms.c |    3 +++
 1 files changed, 3 insertions(+)

--- NEW FILE gdb-6.5-bz200533-ppc-solib_trampoline.patch ---
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200533


diff -ru gdb-6.5-orig/gdb/minsyms.c gdb-6.5/gdb/minsyms.c
--- gdb-6.5-orig/gdb/minsyms.c	2005-12-17 17:34:01.000000000 -0500
+++ gdb-6.5/gdb/minsyms.c	2006-08-13 10:49:43.000000000 -0400
@@ -486,6 +486,9 @@
 			  don't fill the bfd_section member, so don't
 			  throw away symbols on those platforms.  */
 		       && SYMBOL_BFD_SECTION (&msymbol[hi]) != NULL
+		       /* Don't ignore symbols for solib trampolines
+			  Red Hat Bug 200533 and Bug 192964.  */
+		       && MSYMBOL_TYPE (&msymbol[hi]) != mst_solib_trampoline
 		       && SYMBOL_BFD_SECTION (&msymbol[hi]) != section)
 		  --hi;
 


Index: gdb.spec
===================================================================
RCS file: /cvs/dist/rpms/gdb/FC-5/gdb.spec,v
retrieving revision 1.186
retrieving revision 1.186.2.1
diff -u -r1.186 -r1.186.2.1
--- gdb.spec	15 Jun 2006 11:34:41 -0000	1.186
+++ gdb.spec	20 Aug 2006 12:42:32 -0000	1.186.2.1
@@ -11,7 +11,7 @@
 Version: 6.3.0.0
 
 # The release always contains a leading reserved number, start it at 0.
-Release: 1.132.FC5
+Release: 1.132_jkratoch0.FC5
 
 License: GPL
 Group: Development/Debuggers
@@ -292,6 +292,12 @@
 # ia32el.
 Patch179: gdb-6.3-ia32el-fix-waitpid-20060615.patch
 
+# Bugfix Patch130 segv (BZ 200048).
+Patch180: gdb-6.5-bz200048-find_line_pc-segv.patch
+
+# Do not step into the PPC solib trampolines (BZ 200533).
+Patch181: gdb-6.5-bz200533-ppc-solib_trampoline.patch
+
 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext
 BuildRequires: flex bison
 
@@ -401,6 +407,8 @@
 %patch177 -p1
 %patch178 -p1
 %patch179 -p1
+%patch180 -p1
+%patch181 -p1
 
 # Change the version that gets printed at GDB startup, so it is RedHat
 # specific.
@@ -569,6 +577,10 @@
 # don't include the files in include, they are part of binutils
 
 %changelog
+* Sun Aug 20 2006 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.3.0.0-1.132_jkratoch0
+- Bugfix Patch130 segv (BZ 200048).
+- Do not step into the PPC solib trampolines (BZ 200533).
+
 * Thu Jun 15 2006 Alexandre Oliva <aoliva at redhat.com> - 6.3.0.0-1.132
 - Require flex and bison at build time.
 - Additional patch for BZ 175083, to cope with waitpid setting status




More information about the fedora-cvs-commits mailing list