diff options
author | Pedro Alves <palves@redhat.com> | 2012-01-27 13:55:58 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-01-27 13:55:58 +0000 |
commit | f3ad2025d78032c917c93d8eb38d88bbf4294408 (patch) | |
tree | 1adba6303cf6d403fea6e8e6a4933096a3ce8a50 /gdb/testsuite/gdb.base/watchpoint.exp | |
parent | 100aa3aee07dfecb3edf8b510902658e85706f33 (diff) | |
download | gdb-f3ad2025d78032c917c93d8eb38d88bbf4294408.zip gdb-f3ad2025d78032c917c93d8eb38d88bbf4294408.tar.gz gdb-f3ad2025d78032c917c93d8eb38d88bbf4294408.tar.bz2 |
2012-01-27 Pedro Alves <palves@redhat.com>
* gdb.base/watchpoint.exp: Clean restart after tests that don't
require `initialize' anymore. Remove unnecessary `initialize'
calls.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint.exp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp index 16fe05f..9aeb5ec 100644 --- a/gdb/testsuite/gdb.base/watchpoint.exp +++ b/gdb/testsuite/gdb.base/watchpoint.exp @@ -781,17 +781,12 @@ if [initialize] then { if ![target_info exists gdb,cannot_call_functions] { test_stepping - - # See above. - if [istarget "mips-idt-*"] then { - gdb_exit - gdb_start - gdb_reinitialize_dir $srcdir/$subdir - gdb_load $binfile - initialize - } } + # Tests below don't rely on the markers and watchpoint set by + # `initialize' anymore. + clean_restart $testfile + # Only enabled for some targets merely because it has not been tested # elsewhere. # On sparc-sun-sunos4.1.3, GDB was running all the way to the marker4 @@ -806,7 +801,6 @@ if [initialize] then { gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load $binfile - initialize } # Only enabled for some targets merely because it has not been tested @@ -852,7 +846,6 @@ if [initialize] then { gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load $binfile - initialize } test_watchpoint_and_breakpoint |