| OLD | NEW |
| 1 # Copyright 2002-2005, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2002-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 23 matching lines...) Expand all Loading... |
| 34 # If a resume fails, assume non-stop is broken or unsupported | 34 # If a resume fails, assume non-stop is broken or unsupported |
| 35 # for this target. We have logged a FAIL or UNSUPPORTED; skip | 35 # for this target. We have logged a FAIL or UNSUPPORTED; skip |
| 36 # the remaining tests to limit timeouts. | 36 # the remaining tests to limit timeouts. |
| 37 return -code continue | 37 return -code continue |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 # | 41 # |
| 42 # Start here | 42 # Start here |
| 43 # | 43 # |
| 44 set testfile "ns-stale-regcache" | 44 standard_testfile ns-stale-regcache.c |
| 45 set srcfile "$testfile.c" | |
| 46 set binfile "$objdir/$subdir/mi-$testfile" | |
| 47 | 45 |
| 48 set options [list debug incdir=$objdir] | 46 set options [list debug] |
| 49 if {[gdb_compile "$srcdir/$subdir/$srcfile" \ | 47 if {[gdb_compile "$srcdir/$subdir/$srcfile" \ |
| 50 $binfile executable $options] != "" } { | 48 $binfile executable $options] != "" } { |
| 51 return -1 | 49 return -1 |
| 52 } | 50 } |
| 53 | 51 |
| 54 mi_gdb_reinitialize_dir $srcdir/$subdir | 52 mi_gdb_reinitialize_dir $srcdir/$subdir |
| 55 mi_gdb_load $binfile | 53 mi_gdb_load $binfile |
| 56 | 54 |
| 57 mi_gdb_test "-gdb-set non-stop 1" ".*" | 55 mi_gdb_test "-gdb-set non-stop 1" ".*" |
| 58 mi_gdb_test "-gdb-set target-async 1" ".*" | 56 mi_gdb_test "-gdb-set target-async 1" ".*" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 70 "\\^error,msg=\".*\"" "no stale register cache of resumed thread" | 68 "\\^error,msg=\".*\"" "no stale register cache of resumed thread" |
| 71 | 69 |
| 72 mi_gdb_test "-stack-info-frame" \ | 70 mi_gdb_test "-stack-info-frame" \ |
| 73 "\\^error,msg=\".*\"" "no stale frame info of resumed thread" | 71 "\\^error,msg=\".*\"" "no stale frame info of resumed thread" |
| 74 | 72 |
| 75 # Check that the thread is still running. If the above tests passed, | 73 # Check that the thread is still running. If the above tests passed, |
| 76 # we want it to be for the right reasons. | 74 # we want it to be for the right reasons. |
| 77 mi_check_thread_states {"running"} "main thread still running" | 75 mi_check_thread_states {"running"} "main thread still running" |
| 78 | 76 |
| 79 mi_gdb_exit | 77 mi_gdb_exit |
| OLD | NEW |