| OLD | NEW |
| 1 # Copyright 1998-1999, 2001, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1998-1999, 2001, 2007-2012 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 # This program is free software; you can redistribute it and/or modify | 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 | 4 # it under the terms of the GNU General Public License as published by |
| 5 # the Free Software Foundation; either version 3 of the License, or | 5 # the Free Software Foundation; either version 3 of the License, or |
| 6 # (at your option) any later version. | 6 # (at your option) any later version. |
| 7 # | 7 # |
| 8 # This program is distributed in the hope that it will be useful, | 8 # This program is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
| 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 15 | 15 |
| 16 | 16 |
| 17 if $tracelevel then { | |
| 18 strace $tracelevel | |
| 19 } | |
| 20 | |
| 21 set testfile1 "average" | 17 set testfile1 "average" |
| 22 set testfile2 "sum" | 18 set testfile2 "sum" |
| 23 set testfile "dbx-test" | 19 set testfile "dbx-test" |
| 24 set binfile1 ${objdir}/${subdir}/${testfile1} | 20 set binfile1 ${objdir}/${subdir}/${testfile1} |
| 25 set binfile2 ${objdir}/${subdir}/${testfile2} | 21 set binfile2 ${objdir}/${subdir}/${testfile2} |
| 26 set binfile ${objdir}/${subdir}/${testfile} | 22 set binfile ${objdir}/${subdir}/${testfile} |
| 27 | 23 |
| 28 | 24 |
| 29 | 25 |
| 30 if { [gdb_compile "${srcdir}/${subdir}/average.c" "${binfile1}.o" object {debug
}] != "" } { | 26 if { [gdb_compile "${srcdir}/${subdir}/average.c" "${binfile1}.o" object {debug
}] != "" } { |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 gdb_test "file average.c:1" "1\[ \t\]+/. This is a sample program.*" | 329 gdb_test "file average.c:1" "1\[ \t\]+/. This is a sample program.*" |
| 334 test_func | 330 test_func |
| 335 | 331 |
| 336 #exit and cleanup | 332 #exit and cleanup |
| 337 gdb_exit | 333 gdb_exit |
| 338 | 334 |
| 339 set GDBFLAGS $saved_gdbflags | 335 set GDBFLAGS $saved_gdbflags |
| 340 eval proc gdb_file_cmd {$old_gdb_file_cmd_args} {$old_gdb_file_cmd_body} | 336 eval proc gdb_file_cmd {$old_gdb_file_cmd_args} {$old_gdb_file_cmd_body} |
| 341 | 337 |
| 342 return 0 | 338 return 0 |
| OLD | NEW |