aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Manson <manson@cygnus>1997-05-22 05:56:31 +0000
committerBob Manson <manson@cygnus>1997-05-22 05:56:31 +0000
commitee9a6181ff5cc3c7b7bf203ccb3f17cd5eb4f5a3 (patch)
treed0b1d51786c9ec9029429b62f0470351afdfc601
parent3596a9fcb0a162ab30782368f75d1b5237c2ce92 (diff)
downloadgdb-ee9a6181ff5cc3c7b7bf203ccb3f17cd5eb4f5a3.zip
gdb-ee9a6181ff5cc3c7b7bf203ccb3f17cd5eb4f5a3.tar.gz
gdb-ee9a6181ff5cc3c7b7bf203ccb3f17cd5eb4f5a3.tar.bz2
* gdb.base/watchpoint.exp: Don't run the test_stepping
tests if gdb can't call functions on the target.
-rw-r--r--gdb/testsuite/ChangeLog3
-rw-r--r--gdb/testsuite/gdb.base/watchpoint.exp19
2 files changed, 14 insertions, 8 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 544bd69..95cab22 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,8 @@
Wed May 21 21:23:16 1997 Bob Manson <manson@charmed.cygnus.com>
+ * gdb.base/watchpoint.exp: Don't run the test_stepping
+ tests if gdb can't call functions on the target.
+
* gdb.base/setshow.exp: Don't run the set prompt tests if
the board has gdb_prompt set.
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 574a9eb..980383c 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -305,6 +305,7 @@ proc test_stepping {} {
clear_xfail "hppa*-*-*bsd*"
# It works with the generic inferior function calling code too.
clear_xfail "mn10200*-*-*"
+ clear_xfail "mn10300*-*-*"
gdb_test "p func1 ()" "= 73" \
"calling function with watchpoint enabled"
}
@@ -527,15 +528,17 @@ if [initialize] then {
initialize
}
- test_stepping
+ if ![target_info exsts 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
+ # See above.
+ if [istarget "mips-idt-*"] then {
+ gdb_exit
+ gdb_start
+ gdb_reinitialize_dir $srcdir/$subdir
+ gdb_load $binfile
+ initialize
+ }
}
# Only enabled for some targets merely because it has not been tested