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.
This commit is contained in:
Pedro Alves 2012-01-27 13:55:58 +00:00
parent 100aa3aee0
commit f3ad2025d7
2 changed files with 10 additions and 11 deletions

View file

@ -1,3 +1,9 @@
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.
2012-01-27 Pedro Alves <palves@redhat.com> 2012-01-27 Pedro Alves <palves@redhat.com>
* gdb.base/watchpoint.exp (wp_set): Delete. * gdb.base/watchpoint.exp (wp_set): Delete.

View file

@ -781,16 +781,11 @@ if [initialize] then {
if ![target_info exists gdb,cannot_call_functions] { if ![target_info exists gdb,cannot_call_functions] {
test_stepping test_stepping
}
# See above. # Tests below don't rely on the markers and watchpoint set by
if [istarget "mips-idt-*"] then { # `initialize' anymore.
gdb_exit clean_restart $testfile
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile
initialize
}
}
# Only enabled for some targets merely because it has not been tested # Only enabled for some targets merely because it has not been tested
# elsewhere. # elsewhere.
@ -806,7 +801,6 @@ if [initialize] then {
gdb_start gdb_start
gdb_reinitialize_dir $srcdir/$subdir gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile gdb_load $binfile
initialize
} }
# Only enabled for some targets merely because it has not been tested # Only enabled for some targets merely because it has not been tested
@ -852,7 +846,6 @@ if [initialize] then {
gdb_start gdb_start
gdb_reinitialize_dir $srcdir/$subdir gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile gdb_load $binfile
initialize
} }
test_watchpoint_and_breakpoint test_watchpoint_and_breakpoint