Commit | Line | Data |
---|---|---|
782445c7 FF |
1 | if $tracelevel then { |
2 | strace $tracelevel | |
3 | } | |
4 | ||
5 | set prms_id 0 | |
6 | set bug_id 0 | |
7 | ||
8 | set testfile twice-tmp | |
9 | set srcfile ${objdir}/${subdir}/${testfile}.c | |
10 | set binfile ${objdir}/${subdir}/${testfile} | |
11 | ||
12 | execute_anywhere "echo #include \\\"twice.c\\\" > ${srcfile}" | |
13 | if { [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 | ||
20 | gdb_exit | |
21 | gdb_start | |
22 | gdb_reinitialize_dir $srcdir/$subdir | |
23 | gdb_load $binfile | |
24 | ||
25 | if [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 | } | |
38 | return 0 |