]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.3-nonthreaded-wp-20050117.patch
- NOTE: does not build with -j2
[packages/gdb.git] / gdb-6.3-nonthreaded-wp-20050117.patch
1 [base]
2
3 2007-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4
5         * linux-nat.c (iterate_over_lwps): Fixed missing LWP initialization for
6         current INFERIOR_PTID.
7
8 2007-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9
10         * gdb.base/follow-child.exp, gdb.base/follow-child.c: New files.
11
12 2007-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13
14         Port to GDB-6.7.
15
16 2008-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
17
18         Port to GDB-6.8pre.
19
20 2008-08-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
21
22         Remove the fix as causing an assertion failure for
23         gdb.base/checkpoint.exp and it is no longer needed for
24         gdb.base/follow-child.exp .
25
26 Index: gdb-6.8cvs20080219/gdb/testsuite/gdb.base/follow-child.c
27 ===================================================================
28 --- /dev/null   1970-01-01 00:00:00.000000000 +0000
29 +++ gdb-6.8cvs20080219/gdb/testsuite/gdb.base/follow-child.c    2008-02-22 08:14:04.000000000 +0100
30 @@ -0,0 +1,29 @@
31 +/* This testcase is part of GDB, the GNU debugger.
32 +
33 +   Copyright 2007 Free Software Foundation, Inc.
34 +
35 +   This program is free software; you can redistribute it and/or modify
36 +   it under the terms of the GNU General Public License as published by
37 +   the Free Software Foundation; either version 2 of the License, or
38 +   (at your option) any later version.
39 +
40 +   This program is distributed in the hope that it will be useful,
41 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
42 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43 +   GNU General Public License for more details.
44 +
45 +   You should have received a copy of the GNU General Public License
46 +   along with this program; if not, write to the Free Software
47 +   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
48 +
49 +   Please email any bugs, comments, and/or additions to this file to:
50 +   bug-gdb@prep.ai.mit.edu  */
51 +
52 +#include <unistd.h>
53 +
54 +int main()
55 +{
56 +  fork ();
57 +  sleep (60);
58 +  return 0;
59 +}
60 Index: gdb-6.8cvs20080219/gdb/testsuite/gdb.base/follow-child.exp
61 ===================================================================
62 --- /dev/null   1970-01-01 00:00:00.000000000 +0000
63 +++ gdb-6.8cvs20080219/gdb/testsuite/gdb.base/follow-child.exp  2008-02-22 08:14:17.000000000 +0100
64 @@ -0,0 +1,55 @@
65 +# Copyright 2007 Free Software Foundation, Inc.
66 +
67 +# This program is free software; you can redistribute it and/or modify
68 +# it under the terms of the GNU General Public License as published by
69 +# the Free Software Foundation; either version 2 of the License, or
70 +# (at your option) any later version.
71 +# 
72 +# This program is distributed in the hope that it will be useful,
73 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
74 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
75 +# GNU General Public License for more details.
76 +# 
77 +# You should have received a copy of the GNU General Public License
78 +# along with this program; if not, write to the Free Software
79 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
80 +
81 +if $tracelevel then {
82 +    strace $tracelevel
83 +}
84 +
85 +set prms_id 0
86 +set bug_id 0
87 +
88 +set testfile follow-child
89 +set srcfile ${testfile}.c
90 +set binfile ${objdir}/${subdir}/${testfile}
91 +if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
92 +    untested "Couldn't compile test program"
93 +    return -1
94 +}
95 +
96 +# Get things started.
97 +
98 +gdb_exit
99 +gdb_start
100 +gdb_reinitialize_dir $srcdir/$subdir
101 +gdb_load ${binfile}
102 +
103 +# For C programs, "start" should stop in main().
104 +
105 +gdb_test "set follow-fork-mode child" ""
106 +set test "started"
107 +# GDB_RUN_CMD already checks for `Starting program:'.
108 +gdb_run_cmd
109 +sleep 5
110 +send_gdb "\003"
111 +set test "break"
112 +gdb_test_multiple "" $test {
113 +    -re "Program received signal SIGINT.*$gdb_prompt $" {
114 +       pass $test
115 +    }
116 +    -re "\\\[New process \[0-9\]+\\\]" {
117 +       fail $test
118 +    }
119 +}
This page took 0.029169 seconds and 3 git commands to generate.