From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17753 invoked by alias); 2 Feb 2007 14:28:26 -0000 Received: (qmail 17427 invoked by uid 22791); 2 Feb 2007 14:28:24 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Feb 2007 14:28:08 +0000 Received: from lon-out-03.spheriq.net ([195.46.50.131]) by lon-del-02.spheriq.net with ESMTP id l12ES0EA008261 for ; Fri, 2 Feb 2007 14:28:00 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-03.spheriq.net with ESMTP id l12ERxg3032319 for ; Fri, 2 Feb 2007 14:27:59 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id l12ERtSi026004 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 2 Feb 2007 14:27:58 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E1300DA5C for ; Fri, 2 Feb 2007 14:26:14 +0000 (GMT) Received: from mail1.cro.st.com (mail1.cro.st.com [164.129.40.131]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A55FB474A5 for ; Fri, 2 Feb 2007 14:26:14 +0000 (GMT) Received: from [164.129.44.95] (crx595.cro.st.com [164.129.44.95]) by mail1.cro.st.com (MOS 3.7.5a-GA) with ESMTP id CJQ21784 (AUTH "denis pilat"); Fri, 2 Feb 2007 15:26:13 +0100 (CET) Message-ID: <45C34A05.1060901@st.com> Date: Fri, 02 Feb 2007 14:28:00 -0000 From: Denis PILAT User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: gdb-patches Subject: Re: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main References: <45C0C028.1050401@st.com> In-Reply-To: <45C0C028.1050401@st.com> Content-Type: multipart/mixed; boundary="------------020408050603070701050905" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00018.txt.bz2 This is a multi-part message in MIME format. --------------020408050603070701050905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 549 > While checking for non-regression in the gdb.threads part of the > testsuite, I noticed one test fails with gcc4 since the argument of > the main are removed by the compiler so don't appear when printing > backtrace: > FAIL: gdb.threads/pthreads.exp: check backtrace from main thread > > Either we can change the .exp file to avoid checking these arguments, > or we can ensure compiler keeps them as proposed hereby. We can also just remove the testing of argc and argv from the pthreads.exp file, that would be better I think. -- Denis --------------020408050603070701050905 Content-Type: text/plain; name="pthreads.exp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pthreads.exp.patch" Content-length: 743 2007-02-02 Denis Pilat * gdb.threads/pthreads.exp: remove checking of unused argc and argv since they can be removed by a compiler optiisation. Index: testsuite/gdb.threads/pthreads.exp =================================================================== --- testsuite/gdb.threads/pthreads.exp (revision 553) +++ testsuite/gdb.threads/pthreads.exp (working copy) @@ -261,7 +261,7 @@ # Check that the "thread apply N backtrace" command works gdb_test "thread apply $main_id backtrace" \ - ".* in main \\(argc=.*, argv=.*\\).*" \ + ".* in main \\(.*\\).*" \ "check backtrace from main thread" gdb_test "thread apply $thread1_id backtrace" \ ".* in thread1 \\(arg=0xfeedface\\).*" \ --------------020408050603070701050905--