* lib/gdb.exp (CFLAGS): Remove, unreferenced.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / twice.exp
CommitLineData
782445c7
FF
1if $tracelevel then {
2 strace $tracelevel
3}
4
5set prms_id 0
6set bug_id 0
7
8set testfile twice-tmp
9set srcfile ${objdir}/${subdir}/${testfile}.c
10set binfile ${objdir}/${subdir}/${testfile}
11
12execute_anywhere "echo #include \\\"twice.c\\\" > ${srcfile}"
13if { [compile "${srcfile} -g -I${srcdir}/${subdir} -o ${binfile}"] != "" } {
14 perror "Couldn't compile ${srcfile}"
15 return -1
16}
17
18# Start with a fresh gdb.
19
20gdb_exit
21gdb_start
22gdb_reinitialize_dir $srcdir/$subdir
23gdb_load $binfile
24
25if [runto_main] then {
26 # Test that GDB can still detect whether we have line numbers
27 # even if we're executing code in an include file.
28
29 # The bug was fixed by
30 #Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
31 #
32 # * infrun.c (wait_for_inferior): Use find_pc_line not
33 # find_pc_symtab to check whether there is line number
34 # information.
35
36 gdb_test "step" "nothing \\(\\) at.*"
37}
38return 0
This page took 0.104739 seconds and 4 git commands to generate.