rpms/gdb/devel gdb-6.3-nonthreaded-wp-20050117.patch, 1.4, 1.5 gdb.spec, 1.251, 1.252
Jan Kratochvil (jkratoch)
fedora-extras-commits at redhat.com
Sat Oct 13 18:41:13 UTC 2007
- Previous message (by thread): rpms/kdegames/devel kdegames-3.5.8-trademarks.patch, NONE, 1.1 .cvsignore, 1.37, 1.38 kdegames.spec, 1.62, 1.63 sources, 1.40, 1.41 kdegames-3.5.7-trademarks.patch, 1.1, NONE
- Next message (by thread): rpms/kdegraphics/devel .cvsignore, 1.34, 1.35 kdegraphics.spec, 1.108, 1.109 sources, 1.37, 1.38 post-3.5.7-kdegraphics-CVE-2007-3387.diff, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jkratoch
Update of /cvs/pkgs/rpms/gdb/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32680
Modified Files:
gdb-6.3-nonthreaded-wp-20050117.patch gdb.spec
Log Message:
* Fri Oct 13 2007 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.6-35
- Fix non-threaded watchpoints CTRL-C regression on `set follow child'.
gdb-6.3-nonthreaded-wp-20050117.patch:
Index: gdb-6.3-nonthreaded-wp-20050117.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb-6.3-nonthreaded-wp-20050117.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- gdb-6.3-nonthreaded-wp-20050117.patch 21 Jan 2007 01:53:01 -0000 1.4
+++ gdb-6.3-nonthreaded-wp-20050117.patch 13 Oct 2007 18:40:40 -0000 1.5
@@ -1,3 +1,14 @@
+[base]
+
+2007-10-13 Jan Kratochvil <jan.kratochvil at redhat.com>
+
+ * linux-nat.c (iterate_over_lwps): Fixed missing LWP initialization for
+ current INFERIOR_PTID.
+
+2007-10-13 Jan Kratochvil <jan.kratochvil at redhat.com>
+
+ * gdb.base/follow-child.exp, gdb.base/follow-child.c: New files.
+
Index: gdb-6.6/gdb/doc/observer.texi
===================================================================
--- gdb-6.6.orig/gdb/doc/observer.texi
@@ -17,7 +28,7 @@
===================================================================
--- gdb-6.6.orig/gdb/linux-nat.c
+++ gdb-6.6/gdb/linux-nat.c
-@@ -803,11 +803,23 @@ iterate_over_lwps (int (*callback) (stru
+@@ -803,11 +803,26 @@ iterate_over_lwps (int (*callback) (stru
{
struct lwp_info *lp, *lpnext;
@@ -36,8 +47,11 @@
+ {
+ /* We are calling iterate_over_lwps for a non-threaded program.
+ Initialize the lwp list to the inferior's ptid. */
-+ lp = add_lwp (BUILD_LWP (GET_PID (inferior_ptid),
-+ GET_PID (inferior_ptid)));
++ gdb_assert (!is_lwp (inferior_ptid));
++
++ inferior_ptid = BUILD_LWP (GET_PID (inferior_ptid),
++ GET_PID (inferior_ptid));
++ lp = add_lwp (inferior_ptid);
if ((*callback) (lp, data))
- return lp;
+ return lp;
@@ -112,3 +126,95 @@
/* Does target have enough data to do a run or attach command? */
+diff -u -u -X /home/jkratoch/.diffi.list -rup gdb-6.6-orig/gdb/testsuite/gdb.base/follow-child.c gdb-6.6/gdb/testsuite/gdb.base/follow-child.c
+--- gdb-6.6-orig/gdb/testsuite/gdb.base/follow-child.c 2007-10-13 19:24:58.000000000 +0200
++++ gdb-6.6/gdb/testsuite/gdb.base/follow-child.c 2007-10-13 19:11:08.000000000 +0200
+@@ -0,0 +1,29 @@
++/* This testcase is part of GDB, the GNU debugger.
++
++ Copyright 2007 Free Software Foundation, Inc.
++
++ This program is free software; you can redistribute it and/or modify
++ it under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 2 of the License, or
++ (at your option) any later version.
++
++ This program is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with this program; if not, write to the Free Software
++ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++
++ Please email any bugs, comments, and/or additions to this file to:
++ bug-gdb at prep.ai.mit.edu */
++
++#include <unistd.h>
++
++int main()
++{
++ fork ();
++ sleep (60);
++ return 0;
++}
+diff -u -u -X /home/jkratoch/.diffi.list -rup gdb-6.6-orig/gdb/testsuite/gdb.base/follow-child.exp gdb-6.6/gdb/testsuite/gdb.base/follow-child.exp
+--- gdb-6.6-orig/gdb/testsuite/gdb.base/follow-child.exp 2007-10-13 19:24:58.000000000 +0200
++++ gdb-6.6/gdb/testsuite/gdb.base/follow-child.exp 2007-10-13 19:24:21.000000000 +0200
+@@ -0,0 +1,55 @@
++# Copyright 2007 Free Software Foundation, Inc.
++
++# This program is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 2 of the License, or
++# (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
++
++if $tracelevel then {
++ strace $tracelevel
++}
++
++set prms_id 0
++set bug_id 0
++
++set testfile follow-child
++set srcfile ${testfile}.c
++set binfile ${objdir}/${subdir}/${testfile}
++if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
++ untested "Couldn't compile test program"
++ return -1
++}
++
++# Get things started.
++
++gdb_exit
++gdb_start
++gdb_reinitialize_dir $srcdir/$subdir
++gdb_load ${binfile}
++
++# For C programs, "start" should stop in main().
++
++gdb_test "set follow-fork-mode child" ""
++set test "started"
++# GDB_RUN_CMD already checks for `Starting program:'.
++gdb_run_cmd
++sleep 5
++send_gdb "\003"
++set test "break"
++gdb_test_multiple "" $test {
++ -re "Program received signal SIGINT.*$gdb_prompt $" {
++ pass $test
++ }
++ -re "\\\[New process \[0-9\]+\\\]" {
++ fail $test
++ }
++}
Index: gdb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdb/devel/gdb.spec,v
retrieving revision 1.251
retrieving revision 1.252
diff -u -r1.251 -r1.252
--- gdb.spec 12 Oct 2007 09:20:08 -0000 1.251
+++ gdb.spec 13 Oct 2007 18:40:40 -0000 1.252
@@ -11,7 +11,7 @@
Version: 6.6
# The release always contains a leading reserved number, start it at 1.
-Release: 34%{?dist}
+Release: 35%{?dist}
License: GPL
Group: Development/Debuggers
@@ -697,6 +697,9 @@
# don't include the files in include, they are part of binutils
%changelog
+* Fri Oct 13 2007 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.6-35
+- Fix non-threaded watchpoints CTRL-C regression on `set follow child'.
+
* Fri Oct 12 2007 Jan Kratochvil <jan.kratochvil at redhat.com> - 6.6-34
- Fix gdbserver for threaded applications and recent glibc (BZ 328021).
- Previous message (by thread): rpms/kdegames/devel kdegames-3.5.8-trademarks.patch, NONE, 1.1 .cvsignore, 1.37, 1.38 kdegames.spec, 1.62, 1.63 sources, 1.40, 1.41 kdegames-3.5.7-trademarks.patch, 1.1, NONE
- Next message (by thread): rpms/kdegraphics/devel .cvsignore, 1.34, 1.35 kdegraphics.spec, 1.108, 1.109 sources, 1.37, 1.38 post-3.5.7-kdegraphics-CVE-2007-3387.diff, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list