Update copyright year in most headers.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / twice.exp
CommitLineData
4c38e0a4
JB
1# Copyright 1997, 1999, 2007, 2008, 2009, 2010
2# Free Software Foundation, Inc.
c906108c
SS
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
e22f8b7c 6# the Free Software Foundation; either version 3 of the License, or
c906108c 7# (at your option) any later version.
e22f8b7c 8#
c906108c
SS
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
e22f8b7c 13#
c906108c 14# You should have received a copy of the GNU General Public License
e22f8b7c 15# along with this program. If not, see <http://www.gnu.org/licenses/>.
c906108c 16
c906108c
SS
17if $tracelevel then {
18 strace $tracelevel
19}
20
21set prms_id 0
22set bug_id 0
23
24set testfile twice-tmp
25set srcfile ${testfile}.c
26set binfile ${objdir}/${subdir}/${testfile}
27set options debug
28lappend options "additional_flags=-I."
29
30set fileid [open ${objdir}/${subdir}/${srcfile} w];
31puts $fileid "#include \"twice.c\"";
32close $fileid;
33
34remote_download host ${srcdir}/${subdir}/twice.c twice.c
35
36if { [gdb_compile "${objdir}/${subdir}/${srcfile}" "${binfile}" executable $options] != "" } {
b60f0898
JB
37 untested twice.exp
38 return -1
c906108c
SS
39}
40
41# Start with a fresh gdb.
42
43gdb_exit
44gdb_start
45gdb_reinitialize_dir $srcdir/$subdir
46gdb_load $binfile
47
48if [runto_main] then {
49 # Test that GDB can still detect whether we have line numbers
50 # even if we're executing code in an include file.
51
52 # The bug was fixed by
53 #Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
54 #
55 # * infrun.c (wait_for_inferior): Use find_pc_line not
56 # find_pc_symtab to check whether there is line number
57 # information.
58
59 gdb_test "step" "nothing \\(\\) at.*"
60}
085dd6e6 61remote_exec build "rm -f twice.c"
c906108c 62return 0
This page took 1.004526 seconds and 4 git commands to generate.