OLD | NEW |
1 # This testcase is part of GDB, the GNU debugger. | 1 # This testcase is part of GDB, the GNU debugger. |
2 # Copyright 2007-2012 Free Software Foundation, Inc. | 2 # Copyright 2007-2012 Free Software Foundation, Inc. |
3 | 3 |
4 # This program is free software; you can redistribute it and/or modify | 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 | 5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
7 # (at your option) any later version. | 7 # (at your option) any later version. |
8 # | 8 # |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 # GNU General Public License for more details. | 12 # GNU General Public License for more details. |
13 # | 13 # |
14 # You should have received a copy of the GNU General Public License | 14 # You should have received a copy of the GNU General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 # Test gdbserver monitor commands. | 17 # Test gdbserver monitor commands. |
18 | 18 |
19 load_lib gdbserver-support.exp | 19 load_lib gdbserver-support.exp |
20 load_lib mi-support.exp | 20 load_lib mi-support.exp |
21 set MIFLAGS "-i=mi" | 21 set MIFLAGS "-i=mi" |
22 | 22 |
23 if { [skip_gdbserver_tests] } { | 23 if { [skip_gdbserver_tests] } { |
24 return 0 | 24 return 0 |
25 } | 25 } |
26 | 26 |
27 set testfile "basics" | 27 standard_testfile basics.c |
28 set srcfile ${testfile}.c | 28 |
29 set binfile ${objdir}/${subdir}/mi-file-transfer | |
30 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 29 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
31 untested mi-file-transfer.exp | 30 untested mi-file-transfer.exp |
32 return -1 | 31 return -1 |
33 } | 32 } |
34 | 33 |
35 gdb_exit | 34 gdb_exit |
36 if [mi_gdb_start] { | 35 if [mi_gdb_start] { |
37 continue | 36 continue |
38 } | 37 } |
39 mi_delete_breakpoints | 38 mi_delete_breakpoints |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 89 } |
91 | 90 |
92 catch { file delete up-server } | 91 catch { file delete up-server } |
93 } | 92 } |
94 | 93 |
95 mi_gdbserver_run | 94 mi_gdbserver_run |
96 | 95 |
97 test_file_transfer "$binfile" "binary file" | 96 test_file_transfer "$binfile" "binary file" |
98 | 97 |
99 mi_gdb_exit | 98 mi_gdb_exit |
OLD | NEW |