From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7343 invoked by alias); 27 Jan 2010 20:34:38 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 7334 invoked by uid 22791); 27 Jan 2010 20:34:38 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Date: Wed, 27 Jan 2010 20:34:00 -0000 From: Jan Kratochvil To: archer@sourceware.org Subject: [expr] [patch] testsuite: Fix gdb.cp/exception.exp false regression Message-ID: <20100127203429.GA31785@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) X-SW-Source: 2010-q1/txt/msg00040.txt.bz2 Hi, patch fixes -FAIL: gdb.cp/exception.exp: backtrace after first throw +PASS: gdb.cp/exception.exp: backtrace after first throw -FAIL: gdb.cp/exception.exp: backtrace after first catch +PASS: gdb.cp/exception.exp: backtrace after first catch -FAIL: gdb.cp/exception.exp: backtrace after second throw +PASS: gdb.cp/exception.exp: backtrace after second throw -FAIL: gdb.cp/exception.exp: backtrace after second catch +PASS: gdb.cp/exception.exp: backtrace after second catch caused by the branch changing: -#0 __cxa_throw (obj=, tinfo=, dest=) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:70 +#0 __cxxabiv1::__cxa_throw (obj=, tinfo=, dest=) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:70 Tested on x86_64-fedora12-linux-gnu. OK to check-in? Thanks, Jan 2010-01-27 Jan Kratochvil * gdb.cp/exception.exp (nws): New. (backtrace after first throw, backtrace after second throw): Require a namespace before __cxa_throw. (backtrace after first catch, backtrace after second catch): Require a namespace before __cxa_begin_catch. --- a/gdb/testsuite/gdb.cp/exception.exp +++ b/gdb/testsuite/gdb.cp/exception.exp @@ -32,6 +32,7 @@ # Replace them with gdb_get_line_number. set ws "\[\r\n\t \]+" +set nws "\[^\r\n\t \]+" set nl "\[\r\n\]+" if $tracelevel then { @@ -146,7 +147,7 @@ gdb_test_multiple "continue" $name { set name "backtrace after first throw" gdb_test_multiple "backtrace" $name { - -re ".*#\[0-9\]+${ws}($hex in |)__cxa_throw.*#\[0-9\]+${ws}$hex in foo \\(i=20\\) at .*${srcfile}:\[0-9\]+\r\n#\[0-9\]+${ws}$hex in main \\(.*\\) at .*${srcfile}:\[0-9\]+\r\n$gdb_prompt $" { + -re ".*#\[0-9\]+${ws}($hex in |)${nws}::__cxa_throw.*#\[0-9\]+${ws}$hex in foo \\(i=20\\) at .*${srcfile}:\[0-9\]+\r\n#\[0-9\]+${ws}$hex in main \\(.*\\) at .*${srcfile}:\[0-9\]+\r\n$gdb_prompt $" { pass $name } } @@ -168,7 +169,7 @@ gdb_test_multiple "continue" $name { set name "backtrace after first catch" gdb_test_multiple "backtrace" $name { - -re ".*#\[0-9\]+${ws}($hex in |)__cxa_begin_catch.*#\[0-9\]+${ws}$hex in main \\(.*\\) at .*$srcfile:\[0-9\]+\r\n$gdb_prompt $" { + -re ".*#\[0-9\]+${ws}($hex in |)${nws}::__cxa_begin_catch.*#\[0-9\]+${ws}$hex in main \\(.*\\) at .*$srcfile:\[0-9\]+\r\n$gdb_prompt $" { pass $name } } @@ -190,7 +191,7 @@ gdb_test_multiple "continue" $name { set name "backtrace after second throw" gdb_test_multiple "backtrace" $name { - -re ".*#\[0-9\]+${ws}($hex in |)__cxa_throw.*#\[0-9\]+${ws}$hex in foo \\(i=20\\) at .*${srcfile}:\[0-9\]+\r\n#\[0-9\]+${ws}$hex in main \\(.*\\) at .*${srcfile}:\[0-9\]+\r\n$gdb_prompt $" { + -re ".*#\[0-9\]+${ws}($hex in |)${nws}::__cxa_throw.*#\[0-9\]+${ws}$hex in foo \\(i=20\\) at .*${srcfile}:\[0-9\]+\r\n#\[0-9\]+${ws}$hex in main \\(.*\\) at .*${srcfile}:\[0-9\]+\r\n$gdb_prompt $" { pass $name } } @@ -212,7 +213,7 @@ gdb_test_multiple "continue" $name { set name "backtrace after second catch" gdb_test_multiple "backtrace" $name { - -re ".*#\[0-9\]+${ws}($hex in |)__cxa_begin_catch.*#\[0-9\]+${ws}$hex in main \\(.*\\) at .*$srcfile:\[0-9\]+\r\n$gdb_prompt $" { + -re ".*#\[0-9\]+${ws}($hex in |)${nws}::__cxa_begin_catch.*#\[0-9\]+${ws}$hex in main \\(.*\\) at .*$srcfile:\[0-9\]+\r\n$gdb_prompt $" { pass $name } }