aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-05-05 21:50:23 +0000
committerMichael Snyder <msnyder@vmware.com>2000-05-05 21:50:23 +0000
commite919ea793df3bb786de64e259076361a0b2534a3 (patch)
tree10ebd1ddf5555dabb7a59a59d28152484044887b /gdb/testsuite/gdb.base
parent103b3ef54f8d3711039fe1dfe18b109e5dac322b (diff)
downloadgdb-e919ea793df3bb786de64e259076361a0b2534a3.zip
gdb-e919ea793df3bb786de64e259076361a0b2534a3.tar.gz
gdb-e919ea793df3bb786de64e259076361a0b2534a3.tar.bz2
2000-04-28 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/break.exp: When compiled with -O2 optimization, gdb may not stop at the first line of main, due to code motion.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/break.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp
index ce36c21..aaad20a 100644
--- a/gdb/testsuite/gdb.base/break.exp
+++ b/gdb/testsuite/gdb.base/break.exp
@@ -858,6 +858,8 @@ if ![target_info exists use_gdb_stub] {
}
-re "Starting program.*Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$srcfile:75.*75\[\t \]+if .argc.* \{.*$gdb_prompt $"\
{ pass "run until function breakpoint, optimized file" }
+ -re "Starting program.*Breakpoint \[0-9\]+,.*main .*argc.*argv.* at .*$gdb_prompt $"\
+ { pass "run until function breakpoint, optimized file (code motion)" }
-re ".*$gdb_prompt $" { fail "run until function breakpoint, optimized file" }
timeout { fail "run until function breakpoint, optimized file (timeout)" }
}