From 2fa63963cdcc84d690264e4dcf8dd3d7fbacf7d6 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 31 Dec 2006 20:01:25 +0000 Subject: * gdb.base/annota1.exp: Allow .*printf in backtraces. * gdb.base/annota3.exp: Likewise. * gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint again (instead of timing out). * gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for GCC bug 26475. * gdb.java/jmisc.exp: Adjust to work with method signatures including return types. Add kfails for GDB bugs 2214 and 2215. Move exit test from jmisc1.exp. * gdb.java/jmisc1.exp: Delete. * gdb.java/jprint.exp: Adjust to work with method signatures including return types. * gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info. * gdb.threads/linux-dp.exp: Don't be confused by program output. * lib/java.exp (compile_java_from_source): Pass the correct type to target_compile. --- gdb/testsuite/gdb.gdb/selftest.exp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.gdb') diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index 201bd38..c837d4c 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -1,5 +1,5 @@ # Copyright 1988, 1990, 1991, 1992, 1994, 1997, 1999, 2000, 2002, -# 2003, 2004 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -40,6 +40,7 @@ proc do_steps_and_nexts {} { gdb_reinitialize_dir $srcdir/.. + set unlikely_line 0 for {set count 0} {$count < 32} {incr count} { send_gdb "list\n" # NOTE: carlton/2002-12-11: The "initial brace" and @@ -193,6 +194,17 @@ proc do_steps_and_nexts {} { fail "must be able to list source lines" return } + -re ".*interpreter_p = xstrdup.*$gdb_prompt $" { + if { $unlikely_line == 0 } { + # This is a GCC optimization bug; a constant has been + # associated with the wrong line number. + setup_xfail "*-*-*" gcc/26475 + fail "$description (unlikely line from gcc)" + set unlikely_line 1 + } + set description "next over xstrdup" + set command "next" + } -re ".*$gdb_prompt $" { fail "unknown source line after $description" return -- cgit v1.1