From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4319 invoked by alias); 11 May 2009 19:42:57 -0000 Received: (qmail 4301 invoked by uid 22791); 11 May 2009 19:42:56 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 May 2009 19:42:51 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id F3E917C0AF; Mon, 11 May 2009 19:42:48 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id DBCEE7C09B; Mon, 11 May 2009 19:42:48 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1M3bOh-0002f2-HO; Mon, 11 May 2009 15:42:47 -0400 Date: Mon, 11 May 2009 19:42:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Fix "break foo" when `foo's prologue ends before line table Message-ID: <20090511194247.GA9877@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org References: <83skjebbef.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83skjebbef.fsf@gnu.org> User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2009-05/txt/msg00225.txt.bz2 On Sat, May 09, 2009 at 05:26:16PM +0300, Eli Zaretskii wrote: > Note that the lineinfo table for the program starts at line 6 at PC > 0x1748, whereas the function `main' begins at PC 0x172c. Is this really what the coff file says? If so, it is a bug in GCC. If we're at 0x172c, GDB should be able to show which line we're on, and we're definitely on some line of main. Is it possible to patch this up in the coff line table reader? -- Daniel Jacobowitz CodeSourcery