| OLD | NEW |
| 1 # Copyright 1999-2005, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1999-2005, 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 # | 23 # |
| 24 | 24 |
| 25 load_lib mi-support.exp | 25 load_lib mi-support.exp |
| 26 set MIFLAGS "-i=mi2" | 26 set MIFLAGS "-i=mi2" |
| 27 | 27 |
| 28 gdb_exit | 28 gdb_exit |
| 29 if [mi_gdb_start] { | 29 if [mi_gdb_start] { |
| 30 continue | 30 continue |
| 31 } | 31 } |
| 32 | 32 |
| 33 set testfile "basics" | 33 standard_testfile basics.c |
| 34 set srcfile ${testfile}.c | 34 |
| 35 set binfile ${objdir}/${subdir}/mi2-stepi | 35 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 36 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
| 37 untested mi2-stepi.exp | 36 untested mi2-stepi.exp |
| 38 return -1 | 37 return -1 |
| 39 } | 38 } |
| 40 | 39 |
| 41 proc test_stepi_nexti {} { | 40 proc test_stepi_nexti {} { |
| 42 global mi_gdb_prompt | 41 global mi_gdb_prompt |
| 43 global hex fullname_syntax srcfile | 42 global hex fullname_syntax srcfile |
| 44 | 43 |
| 45 set line_main_head [gdb_get_line_number "main ("] | 44 set line_main_head [gdb_get_line_number "main ("] |
| 46 set line_main_body [expr $line_main_head + 2] | 45 set line_main_body [expr $line_main_head + 2] |
| (...skipping 22 matching lines...) Expand all Loading... |
| 69 } else { | 68 } else { |
| 70 fail "next-instruction at main 2 (line check)" | 69 fail "next-instruction at main 2 (line check)" |
| 71 } | 70 } |
| 72 } | 71 } |
| 73 | 72 |
| 74 mi_run_to_main | 73 mi_run_to_main |
| 75 test_stepi_nexti | 74 test_stepi_nexti |
| 76 | 75 |
| 77 mi_gdb_exit | 76 mi_gdb_exit |
| 78 return 0 | 77 return 0 |
| OLD | NEW |