rpms/gdb/F-8 gdb-6.6-bz426613-ppc-biarch-signed-addresses-fix.patch, NONE, 1.1 gdb-6.3-inferior-notification-20050721.patch, 1.2, 1.3 gdb.spec, 1.255, 1.256

Jan Kratochvil (jkratoch) fedora-extras-commits at redhat.com
Thu Dec 27 23:06:01 UTC 2007


Author: jkratoch

Update of /cvs/pkgs/rpms/gdb/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17195

Modified Files:
	gdb-6.3-inferior-notification-20050721.patch gdb.spec 
Added Files:
	gdb-6.6-bz426613-ppc-biarch-signed-addresses-fix.patch 
Log Message:
* Thu Dec 27 2007 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.6-39
- Fix (backport) PPC biarch (ppc64->ppc) addresses above 2GB (BZ 426613).
- Fix the vendora testcase `attach-32.exp' affecting the other tests results.


gdb-6.6-bz426613-ppc-biarch-signed-addresses-fix.patch:

--- NEW FILE gdb-6.6-bz426613-ppc-biarch-signed-addresses-fix.patch ---
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=426613

A very minimal backport of the upstream:
	http://sourceware.org/ml/gdb-patches/2007-03/msg00307.html

`continue' of a PIE ppc32 program on ppc64 GDB fails.

diff -u -rup gdb-6.6-orig/gdb/solib-svr4.c gdb-6.6/gdb/solib-svr4.c
--- gdb-6.6-orig/gdb/solib-svr4.c	2007-12-26 18:46:17.000000000 -0500
+++ gdb-6.6/gdb/solib-svr4.c	2007-12-27 16:38:59.000000000 -0500
@@ -130,9 +130,9 @@ LM_ADDR_FROM_LINK_MAP (struct so_list *s
 {
   struct link_map_offsets *lmo = svr4_fetch_link_map_offsets ();
 
-  return (CORE_ADDR) extract_signed_integer (so->lm_info->lm
-					     + lmo->l_addr_offset,
-					     lmo->l_addr_size);
+  return (CORE_ADDR) extract_unsigned_integer (so->lm_info->lm
+					       + lmo->l_addr_offset,
+					       lmo->l_addr_size);
 }
 
 static int
@@ -150,9 +150,9 @@ LM_DYNAMIC_FROM_LINK_MAP (struct so_list
 
   gdb_assert (lmo->l_ld_size != 0);
 
-  return (CORE_ADDR) extract_signed_integer (so->lm_info->lm
-					     + lmo->l_ld_offset,
-					     lmo->l_ld_size);
+  return (CORE_ADDR) extract_unsigned_integer (so->lm_info->lm
+					       + lmo->l_ld_offset,
+					       lmo->l_ld_size);
 }
 
 static CORE_ADDR

gdb-6.3-inferior-notification-20050721.patch:

Index: gdb-6.3-inferior-notification-20050721.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/F-8/gdb-6.3-inferior-notification-20050721.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- gdb-6.3-inferior-notification-20050721.patch	11 Jul 2006 06:33:02 -0000	1.2
+++ gdb-6.3-inferior-notification-20050721.patch	27 Dec 2007 23:05:49 -0000	1.3
@@ -1,9 +1,13 @@
 2005-07-21  Jeff Johnston  <jjohnstn at redhat.com>
 
-        * gdb.base/attach-32.exp: New test for attaching in 32-bit
-        mode on 64-bit systems.
-        * gdb.base/attach-32.c: Ditto.
-        * gdb.base/attach-32b.c: Ditto.
+	* gdb.base/attach-32.exp: New test for attaching in 32-bit
+	mode on 64-bit systems.
+	* gdb.base/attach-32.c: Ditto.
+	* gdb.base/attach-32b.c: Ditto.
+
+2007-12-26  Jan Kratochvil  <jan.kratochvil at redhat.com>
+
+	* gdb.base/attach-32.exp: Fix forgotten $GDBFLAGS as set.
 
 --- gdb-6.3/gdb/testsuite/gdb.base/attach-32.c.fix3	2005-07-21 14:23:50.000000000 -0400
 +++ gdb-6.3/gdb/testsuite/gdb.base/attach-32.c	2005-07-21 14:05:56.000000000 -0400
@@ -30,7 +34,7 @@
 +}
 --- gdb-6.3/gdb/testsuite/gdb.base/attach-32.exp.fix3	2005-07-21 14:23:45.000000000 -0400
 +++ gdb-6.3/gdb/testsuite/gdb.base/attach-32.exp	2005-07-21 17:58:28.000000000 -0400
-@@ -0,0 +1,247 @@
+@@ -0,0 +1,252 @@
 +# Copyright 2005 Free Software Foundation, Inc.
 +
 +# This program is free software; you can redistribute it and/or modify
@@ -251,9 +255,12 @@
 +    # different due to the way fork/exec works.
 +    set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
 +}
-+set GDBFLAGS "--pid=$testpid"
 +
++set GDBFLAGS_orig $GDBFLAGS
++set GDBFLAGS "--pid=$testpid"
 +gdb_start
++set GDBFLAGS $GDBFLAGS_orig
++
 +gdb_reinitialize_dir $srcdir/$subdir
 +
 +# This is a test of gdb's ability to attach to a running process.
@@ -270,9 +277,11 @@
 +    # different due to the way fork/exec works.
 +    set testpid [ exec ps -e | gawk "{ if (\$1 == $testpid) print \$4; }" ]
 +}
-+set GDBFLAGS "--pid=$testpid"
 +
++set GDBFLAGS_orig $GDBFLAGS
++set GDBFLAGS "--pid=$testpid"
 +gdb_start
++set GDBFLAGS $GDBFLAGS_orig
 +
 +gdb_reinitialize_dir $srcdir/$subdir
 +do_call_attach_tests


Index: gdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/F-8/gdb.spec,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -r1.255 -r1.256
--- gdb.spec	22 Dec 2007 14:38:42 -0000	1.255
+++ gdb.spec	27 Dec 2007 23:05:49 -0000	1.256
@@ -11,7 +11,7 @@
 Version: 6.6
 
 # The release always contains a leading reserved number, start it at 1.
-Release: 38%{?dist}
+Release: 39%{?dist}
 
 License: GPL
 Group: Development/Debuggers
@@ -392,6 +392,9 @@
 # Testsuite fixes for more stable/comparable results.
 Patch287: gdb-6.7-testsuite-stable-results.patch
 
+# Fix (backport) PPC biarch (ppc64->ppc) addresses above 2GB (BZ 426613).
+Patch291: gdb-6.6-bz426613-ppc-biarch-signed-addresses-fix.patch
+
 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext
 BuildRequires: flex bison sharutils expat-devel
 Requires: readline
@@ -554,6 +557,7 @@
 %patch284 -p1
 %patch285 -p1
 %patch287 -p1
+%patch291 -p1
 
 # Change the version that gets printed at GDB startup, so it is RedHat
 # specific.
@@ -710,6 +714,10 @@
 # don't include the files in include, they are part of binutils
 
 %changelog
+* Thu Dec 27 2007 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.6-39
+- Fix (backport) PPC biarch (ppc64->ppc) addresses above 2GB (BZ 426613).
+- Fix the vendora testcase `attach-32.exp' affecting the other tests results.
+
 * Sat Dec 22 2007 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.6-38
 - Fix crash on parsing duplicite file entries debug info (BZ 426395).
 - Fix (#2) readline history for input mode commands like `command' (BZ 215816).




More information about the fedora-extras-commits mailing list