| OLD | NEW |
| 1 # Copyright 1999-2003, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 1999-2003, 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 15 matching lines...) Expand all Loading... |
| 26 # | 26 # |
| 27 | 27 |
| 28 load_lib mi-support.exp | 28 load_lib mi-support.exp |
| 29 set MIFLAGS "-i=mi2" | 29 set MIFLAGS "-i=mi2" |
| 30 | 30 |
| 31 gdb_exit | 31 gdb_exit |
| 32 if [mi_gdb_start] { | 32 if [mi_gdb_start] { |
| 33 continue | 33 continue |
| 34 } | 34 } |
| 35 | 35 |
| 36 set testfile "mi-read-memory" | 36 standard_testfile mi-read-memory.c |
| 37 set srcfile ${testfile}.c | 37 |
| 38 set binfile ${objdir}/${subdir}/${testfile} | 38 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
| 39 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug additional_flags=-DFAKEARGV}] != "" } { | |
| 40 untested mi2-read-memory.exp | 39 untested mi2-read-memory.exp |
| 41 return -1 | 40 return -1 |
| 42 } | 41 } |
| 43 | 42 |
| 44 | 43 |
| 45 mi_run_to_main | 44 mi_run_to_main |
| 46 mi_next_to "main" "" "mi-read-memory.c" "20" "next at main" | 45 mi_next_to "main" "" "mi-read-memory.c" "20" "next at main" |
| 47 | 46 |
| 48 mi_gdb_test "1-data-read-memory" \ | 47 mi_gdb_test "1-data-read-memory" \ |
| 49 "1\\^error,msg=\".*\"" \ | 48 "1\\^error,msg=\".*\"" \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 74 "5\\^done,addr=\"$hex\",nr-bytes=\"2\",total-bytes=\"2\",next-row=\"$hex
\",prev-row=\"$hex\",next-page=\"$hex\",prev-page=\"$hex\",memory=\\\[{addr=\"$h
ex\",data=\\\[\"128\"\\\]}\\\]" \ | 73 "5\\^done,addr=\"$hex\",nr-bytes=\"2\",total-bytes=\"2\",next-row=\"$hex
\",prev-row=\"$hex\",next-page=\"$hex\",prev-page=\"$hex\",memory=\\\[{addr=\"$h
ex\",data=\\\[\"128\"\\\]}\\\]" \ |
| 75 "decimal" | 74 "decimal" |
| 76 | 75 |
| 77 mi_gdb_test "6-data-read-memory shorts+64 o 2 1 1" \ | 76 mi_gdb_test "6-data-read-memory shorts+64 o 2 1 1" \ |
| 78 "6\\^done,addr=\"$hex\",nr-bytes=\"2\",total-bytes=\"2\",next-row=\"$hex
\",prev-row=\"$hex\",next-page=\"$hex\",prev-page=\"$hex\",memory=\\\[{addr=\"$h
ex\",data=\\\[\"0200\"\\\]}\\\]" \ | 77 "6\\^done,addr=\"$hex\",nr-bytes=\"2\",total-bytes=\"2\",next-row=\"$hex
\",prev-row=\"$hex\",next-page=\"$hex\",prev-page=\"$hex\",memory=\\\[{addr=\"$h
ex\",data=\\\[\"0200\"\\\]}\\\]" \ |
| 79 "octal" | 78 "octal" |
| 80 | 79 |
| 81 | 80 |
| 82 mi_gdb_exit | 81 mi_gdb_exit |
| 83 return 0 | 82 return 0 |
| OLD | NEW |