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