Update copyright year in most headers.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.stabs / exclfwd.exp
CommitLineData
4c38e0a4 1# Copyright 2004, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5c98409b
JB
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
e22f8b7c 5# the Free Software Foundation; either version 3 of the License, or
5c98409b 6# (at your option) any later version.
e22f8b7c 7#
5c98409b
JB
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
e22f8b7c 12#
5c98409b 13# You should have received a copy of the GNU General Public License
e22f8b7c 14# along with this program. If not, see <http://www.gnu.org/licenses/>.
5c98409b
JB
15
16# Please email any bugs, comments, and/or additions to this file to:
17# bug-gdb@gnu.org
18
19if $tracelevel {
20 strace $tracelevel
21}
22
30930ca5
DJ
23# If the test directory was not created by configure then skip
24# this test.
25if ![file isdirectory ${objdir}/${subdir}] then {
26 return 0
27}
28
5c98409b
JB
29#
30# test running programs
31#
32set prms_id 0
33set bug_id 0
34
35set testfile exclfwd
36set binfile ${objdir}/${subdir}/${testfile}
37
38foreach file {exclfwd1 exclfwd2} {
39 if {[gdb_compile "${srcdir}/${subdir}/${file}.c" "${file}.o" object {debug}] != ""} {
b60f0898
JB
40 untested exclfwd.exp
41 return -1
5c98409b
JB
42 }
43}
44
45if {[gdb_compile "exclfwd1.o exclfwd2.o" ${binfile} executable {debug}] != "" } {
b60f0898
JB
46 untested exclfwd.exp
47 return -1
5c98409b
JB
48}
49
50gdb_exit
51gdb_start
52gdb_reinitialize_dir $srcdir/$subdir
53gdb_load ${binfile}
54
55if ![runto_main] then {
56 perror "couldn't run to breakpoint"
57 continue
58}
59
60get_debug_format
61
62set eol "\[ \t\]*\[\n\r\]+"
63
64gdb_test "ptype v1" "type = struct a {$eol
65 int x;$eol
66 int y;$eol
67}$eol"
68
69if { [test_debug_format "stabs"] } then {
70 setup_kfail "gdb/1602" *-*-*
71}
72gdb_test "ptype v2" "type = struct a {$eol
73 const char .c;$eol
74}$eol"
75
76if { [test_debug_format "stabs"] } then {
77 setup_kfail "gdb/1603" *-*-*
78}
79gdb_test "ptype v3" "type = const char ."
This page took 0.644244 seconds and 4 git commands to generate.