From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8662 invoked by alias); 23 Jan 2006 19:17:14 -0000 Received: (qmail 8652 invoked by uid 22791); 23 Jan 2006 19:17:13 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 23 Jan 2006 19:17:11 +0000 Received: by zproxy.gmail.com with SMTP id x3so964744nzd for ; Mon, 23 Jan 2006 11:17:09 -0800 (PST) Received: by 10.36.250.64 with SMTP id x64mr4172266nzh; Mon, 23 Jan 2006 11:17:09 -0800 (PST) Received: by 10.37.2.42 with HTTP; Mon, 23 Jan 2006 11:17:09 -0800 (PST) Message-ID: <8f2776cb0601231117r6bdb8f95g6ee4c60aa6ebd22@mail.gmail.com> Date: Mon, 23 Jan 2006 19:17:00 -0000 From: Jim Blandy To: fnf@specifix.com Subject: Re: [PATCH] Fix ptype problem printing typedefs defined differently in different compilation units Cc: Daniel Jacobowitz , gdb-patches@sourceware.org In-Reply-To: <200601231143.22560.fnf@specifix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200601031517.50309.fnf@specifix.com> <200601231027.05302.fnf@specifix.com> <20060123161210.GC17767@nevyn.them.org> <200601231143.22560.fnf@specifix.com> 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/msg00335.txt.bz2 Are you sure you're not misunderstanding your typescript? When you have a core file, you have a frame, so it's always using the frame context. I think that's the correct behavior. When there is a frame, the source position (as established by 'list' commands) generally doesn't override the frame position when deciding scopes. It's the same for (say) printing static variables. What behavior would be most easily understood and used is arguable, but this is, as I understand it, GDB's intended behavior. So I don't think there's a problem with your patch.