aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-03-25 06:01:20 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-03-25 06:01:20 +0000
commit62f2c8080203a4c48cb408119a4afb4d9cb766c2 (patch)
treedb9528f9b0ebb693907dec6215be5012ab604fb0 /gdb/testsuite
parent1a7f57e783c19d20bbaf4c3686dcfa8d13780da5 (diff)
downloadgdb-62f2c8080203a4c48cb408119a4afb4d9cb766c2.zip
gdb-62f2c8080203a4c48cb408119a4afb4d9cb766c2.tar.gz
gdb-62f2c8080203a4c48cb408119a4afb4d9cb766c2.tar.bz2
* gdb.base/break.exp (test_next_with_recursion): Accept any line
number (we are already testing that the correct source line text gets printed). * gdb.base/break.exp: Make one test if $usestubs. I'm not sure that is what is intended, but something needed to be done to get sunos4 native working again. * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog10
-rw-r--r--gdb/testsuite/gdb.base/break.exp7
2 files changed, 15 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e1849e8..0e5f845 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,15 @@
Fri Mar 24 06:11:05 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * gdb.base/break.exp (test_next_with_recursion): Accept any line
+ number (we are already testing that the correct source line text
+ gets printed).
+
+ * gdb.base/break.exp: Make one test if $usestubs. I'm not sure
+ that is what is intended, but something needed to be done to get
+ sunos4 native working again.
+
+ * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
+
* gdb.base/a1-selftest.exp (test_with_self): Remove comment which
apparently went with a (very) old xfail.
diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp
index f2f56fb..5fb51fb 100644
--- a/gdb/testsuite/gdb.base/break.exp
+++ b/gdb/testsuite/gdb.base/break.exp
@@ -143,8 +143,10 @@ if !$usestubs then {
}
}
-gdb_test $cmd "Starting program.*Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$srcfile:56.*56\[\t \]+if .argc.*" \
+if $usestubs {
+ gdb_test $cmd "Starting program.*Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$srcfile:56.*56\[\t \]+if .argc.*" \
"run until function breakpoint"
+}
#
# run until the breakpoint at a line number
@@ -321,7 +323,8 @@ proc test_next_with_recursion {} {
delete_breakpoints
- gdb_test next "75\[\t \]+return \\(value\\);.*" "next over recursive call"
+ gdb_test next "\[0-9\]*\[\t \]+return \\(value\\);.*" \
+ "next over recursive call"
# OK, we should be back in the same stack frame we started from.
# Do a backtrace just to confirm.