OLD | NEW |
1 # Copyright 1999-2002, 2004-2005, 2007-2012 Free Software Foundation, | 1 # Copyright 1999-2002, 2004-2005, 2007-2012 Free Software Foundation, |
2 # Inc. | 2 # 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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 # | 22 # |
23 | 23 |
24 load_lib mi-support.exp | 24 load_lib mi-support.exp |
25 set MIFLAGS "-i=mi" | 25 set MIFLAGS "-i=mi" |
26 | 26 |
27 gdb_exit | 27 gdb_exit |
28 if [mi_gdb_start] { | 28 if [mi_gdb_start] { |
29 continue | 29 continue |
30 } | 30 } |
31 | 31 |
32 set testfile "basics" | 32 standard_testfile basics.c |
33 set srcfile ${testfile}.c | 33 |
34 set binfile ${objdir}/${subdir}/mi-disassemble | 34 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
35 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
36 untested mi-disassemble.exp | 35 untested mi-disassemble.exp |
37 return -1 | 36 return -1 |
38 } | 37 } |
39 | 38 |
40 proc test_disassembly_only {} { | 39 proc test_disassembly_only {} { |
41 global mi_gdb_prompt | 40 global mi_gdb_prompt |
42 global hex | 41 global hex |
43 global decimal | 42 global decimal |
44 | 43 |
45 set line_main_head [gdb_get_line_number "main ("] | 44 set line_main_head [gdb_get_line_number "main ("] |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 test_disassembly_only | 230 test_disassembly_only |
232 test_disassembly_with_opcodes | 231 test_disassembly_with_opcodes |
233 test_disassembly_mixed | 232 test_disassembly_mixed |
234 test_disassembly_mixed_with_opcodes | 233 test_disassembly_mixed_with_opcodes |
235 test_disassembly_bogus_args | 234 test_disassembly_bogus_args |
236 test_disassembly_lines_limit | 235 test_disassembly_lines_limit |
237 test_disassembly_mixed_lines_limit | 236 test_disassembly_mixed_lines_limit |
238 | 237 |
239 mi_gdb_exit | 238 mi_gdb_exit |
240 return 0 | 239 return 0 |
OLD | NEW |