From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16702 invoked by alias); 13 Feb 2002 15:10:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16614 invoked from network); 13 Feb 2002 15:10:20 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 13 Feb 2002 15:10:20 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16b136-0008Sx-00; Wed, 13 Feb 2002 10:10:20 -0500 Date: Wed, 13 Feb 2002 07:10:00 -0000 From: Daniel Jacobowitz To: fnf@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Gdb line table implementation tweak Message-ID: <20020213101020.A32194@nevyn.them.org> Mail-Followup-To: fnf@redhat.com, gdb-patches@sources.redhat.com References: <200202130028.g1D0StM11730@fred.ninemoons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200202130028.g1D0StM11730@fred.ninemoons.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00355.txt.bz2 On Tue, Feb 12, 2002 at 05:28:55PM -0700, Fred Fish wrote: > The implementation of gdb's line number table can cause gdb to give > misleading results when some parts of a program are compiled with > debugging enabled and other parts are not. Here is an example: I like this patch; I like it a lot. It fixes a problem I've described on the lists several times now involving libstdc++. I'm not sure it will fix all my problems, given that texthigh/textlow for the psymtabs are still used in various places and will be incorrect; but it should be purely an improvement. This should fix the problem we were attempting to solve in: 2001-11-13 Jim Blandy ... Patch from Peter Schauer: * symtab.c (find_pc_sect_line): If we can't find the function containing PC, we certainly won't have line number information for that location, so return zero immediately. Which had to be reverted for breaking assembly language debugging. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer