1 2008-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4 Remove the `[' character from the GDB-6.8 default message.
6 Index: gdb-6.7.50.20080227/gdb/linux-nat.c
7 ===================================================================
8 --- gdb-6.7.50.20080227.orig/gdb/linux-nat.c 2008-03-01 10:30:48.000000000 +0100
9 +++ gdb-6.7.50.20080227/gdb/linux-nat.c 2008-03-01 10:48:25.000000000 +0100
10 @@ -415,7 +415,7 @@ linux_child_follow_fork (struct target_o
11 /* Detach new forked process? */
14 - if (info_verbose || debug_linux_nat)
15 + if (1 /* Fedora Bug 235197 */ || info_verbose || debug_linux_nat)
17 target_terminal_ours ();
18 fprintf_filtered (gdb_stdlog,
19 Index: gdb-6.7.50.20080227/gdb/testsuite/gdb.base/fork-detach.c
20 ===================================================================
21 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
22 +++ gdb-6.7.50.20080227/gdb/testsuite/gdb.base/fork-detach.c 2008-03-01 10:30:49.000000000 +0100
24 +/* This testcase is part of GDB, the GNU debugger.
26 + Copyright 2007 Free Software Foundation, Inc.
28 + This program is free software; you can redistribute it and/or modify
29 + it under the terms of the GNU General Public License as published by
30 + the Free Software Foundation; either version 2 of the License, or
31 + (at your option) any later version.
33 + This program is distributed in the hope that it will be useful,
34 + but WITHOUT ANY WARRANTY; without even the implied warranty of
35 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 + GNU General Public License for more details.
38 + You should have received a copy of the GNU General Public License
39 + along with this program; if not, write to the Free Software
40 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
42 + Please email any bugs, comments, and/or additions to this file to:
43 + bug-gdb@prep.ai.mit.edu */
45 +#include <sys/types.h>
46 +#include <sys/wait.h>
51 +static void func (void)
69 +/* We do not test the switching to the other fork by GDB `fork 1'. */
73 + got = waitpid (child, NULL, 0);
74 + assert (got == child);
81 Index: gdb-6.7.50.20080227/gdb/testsuite/gdb.base/fork-detach.exp
82 ===================================================================
83 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
84 +++ gdb-6.7.50.20080227/gdb/testsuite/gdb.base/fork-detach.exp 2008-03-01 10:49:36.000000000 +0100
86 +# Copyright 2007 Free Software Foundation, Inc.
88 +# This program is free software; you can redistribute it and/or modify
89 +# it under the terms of the GNU General Public License as published by
90 +# the Free Software Foundation; either version 2 of the License, or
91 +# (at your option) any later version.
93 +# This program is distributed in the hope that it will be useful,
94 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
95 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
96 +# GNU General Public License for more details.
98 +# You should have received a copy of the GNU General Public License
99 +# along with this program; if not, write to the Free Software
100 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
102 +if $tracelevel then {
109 +set testfile fork-detach
110 +set srcfile ${testfile}.c
111 +set binfile ${objdir}/${subdir}/${testfile}
112 +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
113 + untested "Couldn't compile test program"
117 +# Get things started.
121 +gdb_reinitialize_dir $srcdir/$subdir
125 +# `Starting program: .*' prefix is available since gdb-6.7.
127 + "Detaching after fork from child process.*Program exited normally\\..*" \
128 + "Info message caught"