From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27354 invoked by alias); 23 Sep 2004 16:23:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27346 invoked from network); 23 Sep 2004 16:23:33 -0000 Received: from unknown (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org with SMTP; 23 Sep 2004 16:23:33 -0000 Received: from d12nrmr1507.megacenter.de.ibm.com (d12nrmr1507.megacenter.de.ibm.com [9.149.167.1]) by mtagate3.de.ibm.com (8.12.10/8.12.10) with ESMTP id i8NGNVdW069640; Thu, 23 Sep 2004 16:23:31 GMT Received: from d12ml102.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1507.megacenter.de.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i8NGNUU3194660; Thu, 23 Sep 2004 18:23:30 +0200 In-Reply-To: <20040923154527.GD968@gnat.com> Subject: Re: GDB unusable on AIX and lucky to work on HP-UX (PR1170) To: Joel Brobecker Cc: gdb@sources.redhat.com Message-ID: From: Michael Veksler Date: Thu, 23 Sep 2004 16:23:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-SW-Source: 2004-09/txt/msg00203.txt.bz2 Joel Brobecker wrote on 2004-09-23 18:45:27: > Michael, > > would have some code that would demonstrate the problem without > the fiddling? I just looked at the testsuite results on AIX, where > I use GCC 3.2.3 configured with C,C++ and Ada, and I didn't see any > such internal-error. > There is a real test case in the PR. It generates inputs too big to understand. If you look at the PR, you can see my analysis that start with this huge test case, and reduced to simple several lines that do require fiddling. Unfortunately, /bin/as does not guarantee order preservation, which makes my fiddling valid: 1. Since future versions of /bin/as may reorder things this way. 2. Any technology that does post link optimization will cause such problems. I would suspect that FDPR will make the simplest C code impossible to debug in GDB. http://www.haifa.il.ibm.com/projects/systems/cot/fdpr/ The test case is as simple as: $ cat bug.cpp #include #include int main() {} $ g++ -g -fno-inline -fno-default-inline bug.cpp Note that these flags are critical if you don't want an even bigger tests case.