From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15345 invoked by alias); 5 Jan 2006 00:54:32 -0000 Received: (qmail 15337 invoked by uid 22791); 5 Jan 2006 00:54:32 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 05 Jan 2006 00:54:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EuJOc-0004cf-0V; Wed, 04 Jan 2006 19:54:26 -0500 Date: Thu, 05 Jan 2006 00:54:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: fnf@specifix.com, gdb-patches@sourceware.org Subject: Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units Message-ID: <20060105005425.GA17668@nevyn.them.org> Mail-Followup-To: Jim Blandy , fnf@specifix.com, gdb-patches@sourceware.org References: <200601031517.50309.fnf@specifix.com> <200601032147.14083.fnf@specifix.com> <8f2776cb0601031945gb876b84i48c145c291ecbcee@mail.gmail.com> <200601041604.49977.fnf@specifix.com> <8f2776cb0601041626l3d5a006j3160636ff299cd90@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f2776cb0601041626l3d5a006j3160636ff299cd90@mail.gmail.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00053.txt.bz2 On Wed, Jan 04, 2006 at 04:26:28PM -0800, Jim Blandy wrote: > On 1/4/06, Fred Fish wrote: > > 2006-01-04 Fred Fish > > > > * parse.c (source.h): Include. > > (parse_exp_in_context): Use static source context if no > > other context found. > > Thanks for revising this! > > Would it be hard to find the innermost block that contains the current > line? Say, a sal->pc->block mapping? We could fall back to the > static block if some step failed. I think it'd be pretty complicated. The line may map to multiple functions, et cetera et cetera. -- Daniel Jacobowitz CodeSourcery