]> git.ipfire.org Git - ipfire-3.x.git/blob - gdb/patches/gdb-6.5-bz109921-DW_AT_decl_file-test.patch
wget: LDFLAGS were accidentially overwritten
[ipfire-3.x.git] / gdb / patches / gdb-6.5-bz109921-DW_AT_decl_file-test.patch
1 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=109921
2
3 It is duplicite to its upstream variant:
4 http://sourceware.org/ml/gdb-cvs/2007-01/msg00157.html
5 http://sourceware.org/ml/gdb-patches/2007-01/msg00434.html
6 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7 Daniel Jacobowitz <dan@codesourcery.com>
8
9 * gdb.base/included.c, gdb.base/included.exp,
10 gdb.base/included.h: New files.
11
12 ------------------------------------------------------------------------------
13
14 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 * gdb.dwarf2/dw2-included.exp, gdb.dwarf2/dw2-included.c,
17 gdb.dwarf2/dw2-included.h: New files.
18
19 --- /dev/null 1 Jan 1970 00:00:00 -0000
20 +++ ./gdb/testsuite/gdb.dwarf2/dw2-included.c 2 Jan 2007 00:20:27 -0000
21 @@ -0,0 +1,26 @@
22 +/* This testcase is part of GDB, the GNU debugger.
23 +
24 + Copyright 2006 Free Software Foundation, Inc.
25 +
26 + This program is free software; you can redistribute it and/or modify
27 + it under the terms of the GNU General Public License as published by
28 + the Free Software Foundation; either version 2 of the License, or
29 + (at your option) any later version.
30 +
31 + This program is distributed in the hope that it will be useful,
32 + but WITHOUT ANY WARRANTY; without even the implied warranty of
33 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 + GNU General Public License for more details.
35 +
36 + You should have received a copy of the GNU General Public License
37 + along with this program; if not, write to the Free Software
38 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
39 + USA. */
40 +
41 +#include "dw2-included.h"
42 +
43 +int
44 +main()
45 +{
46 + return 0;
47 +}
48 --- /dev/null 1 Jan 1970 00:00:00 -0000
49 +++ ./gdb/testsuite/gdb.dwarf2/dw2-included.exp 2 Jan 2007 00:20:27 -0000
50 @@ -0,0 +1,47 @@
51 +# Copyright 2006 Free Software Foundation, Inc.
52 +
53 +# This program is free software; you can redistribute it and/or modify
54 +# it under the terms of the GNU General Public License as published by
55 +# the Free Software Foundation; either version 2 of the License, or
56 +# (at your option) any later version.
57 +#
58 +# This program is distributed in the hope that it will be useful,
59 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
60 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61 +# GNU General Public License for more details.
62 +#
63 +# You should have received a copy of the GNU General Public License
64 +# along with this program; if not, write to the Free Software
65 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
66 +
67 +# Minimal DWARF-2 unit test
68 +
69 +# This test can only be run on targets which support DWARF-2.
70 +# For now pick a sampling of likely targets.
71 +if {![istarget *-*-linux*]
72 + && ![istarget *-*-gnu*]
73 + && ![istarget *-*-elf*]
74 + && ![istarget *-*-openbsd*]
75 + && ![istarget arm-*-eabi*]
76 + && ![istarget powerpc-*-eabi*]} {
77 + return 0
78 +}
79 +
80 +set testfile "dw2-included"
81 +set srcfile ${testfile}.c
82 +set binfile ${objdir}/${subdir}/${testfile}
83 +
84 +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
85 + return -1
86 +}
87 +
88 +gdb_exit
89 +gdb_start
90 +gdb_reinitialize_dir $srcdir/$subdir
91 +gdb_load ${binfile}
92 +
93 +gdb_test "set listsize 1" ""
94 +gdb_test "list integer" "int integer;\r"
95 +gdb_test "ptype integer" "type = int\r"
96 +# Path varies depending on the build location.
97 +gdb_test "info variables integer" "\r\nFile \[^\r\n\]*/gdb.dwarf2/dw2-included.h:\r\nint integer;\r"
98 --- /dev/null 1 Jan 1970 00:00:00 -0000
99 +++ ./gdb/testsuite/gdb.dwarf2/dw2-included.h 2 Jan 2007 00:20:27 -0000
100 @@ -0,0 +1,20 @@
101 +/* This testcase is part of GDB, the GNU debugger.
102 +
103 + Copyright 2006 Free Software Foundation, Inc.
104 +
105 + This program is free software; you can redistribute it and/or modify
106 + it under the terms of the GNU General Public License as published by
107 + the Free Software Foundation; either version 2 of the License, or
108 + (at your option) any later version.
109 +
110 + This program is distributed in the hope that it will be useful,
111 + but WITHOUT ANY WARRANTY; without even the implied warranty of
112 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
113 + GNU General Public License for more details.
114 +
115 + You should have received a copy of the GNU General Public License
116 + along with this program; if not, write to the Free Software
117 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
118 + USA. */
119 +
120 +int integer;