From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6164 invoked by alias); 27 Jan 2008 16:26:41 -0000 Received: (qmail 6155 invoked by uid 22791); 27 Jan 2008 16:26:40 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 27 Jan 2008 16:26:17 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A649E98118; Sun, 27 Jan 2008 16:26:15 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 7B4EB9810C; Sun, 27 Jan 2008 16:26:15 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JJAKk-0001ex-LB; Sun, 27 Jan 2008 11:26:14 -0500 Date: Sun, 27 Jan 2008 16:26:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: cseo@linux.vnet.ibm.com, jimb@codesourcery.com, gdb@sourceware.org Subject: Re: expand-symtabs.exp Message-ID: <20080127162614.GA5999@caradoc.them.org> Mail-Followup-To: Mark Kettenis , cseo@linux.vnet.ibm.com, jimb@codesourcery.com, gdb@sourceware.org References: <200801271528.m0RFSMo6032355@brahms.sibelius.xs4all.nl> <20080127153802.GA3449@caradoc.them.org> <200801271603.m0RG3PJ1010994@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801271603.m0RG3PJ1010994@brahms.sibelius.xs4all.nl> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00279.txt.bz2 On Sun, Jan 27, 2008 at 05:03:25PM +0100, Mark Kettenis wrote: > Line Number Statements: > Extended opcode 2: set Address to 0x4007e0 > Advance Line by 30 to 31 > Copy > Special opcode 61: advance Address by 4 to 0x4007e4 and Line by 0 to 31 > Advance PC by 2 to 4007e6 > Extended opcode 1: End of Sequence Interesting: Extended opcode 2: set Address to 0x0 Advance Line by 30 to 31 Copy Special opcode 63: advance Address by 4 to 0x4 and Line by 2 to 33 Advance PC by 2 to 0x6 Extended opcode 1: End of Sequence GCC has done this for as long as I remebmer; your version has leaveq associated with the open brace, which is clearly strange. I can reproduce that with GCC 3.3 and 3.4, so you're right; it must be fixed in 4.x. Anyway, now we see how to fix the testcase :-) I'm pretty sure an actual function body won't affect what they're testing for. Does this help? -- Daniel Jacobowitz CodeSourcery 2008-01-27 Daniel Jacobowitz * gdb.base/expand-psymtabs.c (foo): Add a non-empty body. Index: testsuite/gdb.base/expand-psymtabs.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/expand-psymtabs.c,v retrieving revision 1.2 diff -u -p -r1.2 expand-psymtabs.c --- testsuite/gdb.base/expand-psymtabs.c 1 Jan 2008 22:53:18 -0000 1.2 +++ testsuite/gdb.base/expand-psymtabs.c 27 Jan 2008 16:25:30 -0000 @@ -29,7 +29,7 @@ main (void) void foo (void) { - /* Break here */ + int x = 1; /* Break here */ } #endif