From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 730 invoked by alias); 31 Jan 2007 19:36:52 -0000 Received: (qmail 720 invoked by uid 22791); 31 Jan 2007 19:36:51 -0000 X-Spam-Check-By: sourceware.org Received: from vir-del-03.spheriq.net (HELO vir-del-03.spheriq.net) (194.50.41.42) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 31 Jan 2007 19:36:44 +0000 Received: from vir-out-02.spheriq.net ([194.50.41.31]) by vir-del-03.spheriq.net with ESMTP id l0VJZmO6015991 for ; Wed, 31 Jan 2007 19:35:48 GMT Received: from vir-cus-01.spheriq.net (vir-cus-01.spheriq.net [194.50.41.85]) by vir-out-02.spheriq.net with ESMTP id l0VJZmvA028802 for ; Wed, 31 Jan 2007 19:35:48 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by vir-cus-01.spheriq.net with ESMTP id l0VJZk1k007185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 31 Jan 2007 19:35:47 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 1C9C7F25E for ; Wed, 31 Jan 2007 16:13:30 +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 BFD454747B for ; Wed, 31 Jan 2007 16:13:29 +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 CJP72070 (AUTH "denis pilat"); Wed, 31 Jan 2007 17:13:28 +0100 (CET) Message-ID: <45C0C028.1050401@st.com> Date: Wed, 31 Jan 2007 19:36:00 -0000 From: Denis PILAT User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: gdb-patches Subject: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main Content-Type: multipart/mixed; boundary="------------080506080003090806050109" 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-01/txt/msg00625.txt.bz2 This is a multi-part message in MIME format. --------------080506080003090806050109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 443 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. -- Denis Pilat STMicroelectronics --------------080506080003090806050109 Content-Type: text/plain; name="pthreads.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pthreads.c.patch" Content-length: 532 2007-01-31 Denis Pilat * gdb.threads/pthreads.c: ensure argc and argv won't be removed by a compiler optimization. Index: testsuite/gdb.threads/pthreads.c =================================================================== --- testsuite/gdb.threads/pthreads.c (revision 553) +++ testsuite/gdb.threads/pthreads.c (working copy) @@ -122,6 +122,8 @@ main(argc, argv) void (*xxx) (); pthread_attr_t attr; + if (argv); + j = argc; if (verbose) printf ("pid = %d\n", getpid()); foo (1, 2, 3); --------------080506080003090806050109--