From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18649 invoked by alias); 2 Jan 2004 14:45:21 -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 18642 invoked from network); 2 Jan 2004 14:45:20 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sources.redhat.com with SMTP; 2 Jan 2004 14:45:20 -0000 Received: from zaretski ([80.230.159.108]) by legolas.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id BAV37964; Fri, 2 Jan 2004 16:45:14 +0200 (IST) Date: Fri, 02 Jan 2004 14:45:00 -0000 From: "Eli Zaretskii" To: Joel Brobecker Message-Id: <6654-Fri02Jan2004164244+0200-eliz@elta.co.il> CC: gdb-patches@sources.redhat.com In-reply-to: <20040102072500.GS826@gnat.com> (message from Joel Brobecker on Fri, 2 Jan 2004 08:25:00 +0100) Subject: Re: [RFC/dwarf-2] Add support for included files Reply-to: Eli Zaretskii References: <20040102072500.GS826@gnat.com> X-SW-Source: 2004-01/txt/msg00020.txt.bz2 > Date: Fri, 2 Jan 2004 08:25:00 +0100 > From: Joel Brobecker > > This capability can be reproduced in C as well, using #include. Doesn't this happen with C++ programs (which have code fragments on header files) as well? What about Yacc- and Lex-processed code? > If we want to support the case above, I don't see any other way but to > scan the line table as well. How about if we only do that scan when the file name is not found in the partial symbols, i.e. just before GDB is about to give up and report the file as nonexistent? Assuming that the cases you have in mind are rare, this would mean faster operation in most cases.