From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21111 invoked by alias); 7 Mar 2003 19:17:58 -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 21104 invoked from network); 7 Mar 2003 19:17:58 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 7 Mar 2003 19:17:58 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9A58E2A9C; Fri, 7 Mar 2003 14:17:54 -0500 (EST) Message-ID: <3E68F062.2030203@redhat.com> Date: Fri, 07 Mar 2003 19:17:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [patch rfc] use typedef opaque type implementations References: <3E623567.3060508@redhat.com> <20030302183550.GA21343@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00178.txt.bz2 > On Sun, Mar 02, 2003 at 11:46:31AM -0500, Andrew Cagney wrote: > >> This patch follows up an earlier thread that pointed out that GDB is >> pretty broken when it comes to debugging a program that contains >> multiple struct definitions (e.g., gdb). >> >> The attached patch implements the suggested `fix'. Declare a file-local >> typedef and then use that. I've applied it to the ui-out code. A quick >> debug suggests that it works well. >> >> comments? I'll table this for a week ... >> Andrew > > > I assume GDB handles this correctly - if not, it's a fixable bug in the > debug readers, presumably. My testing certainly appeared to work. > Looks like as elegant a solution as I could > have asked for. > Should we put something about this in the coding standards? Hmm, more to do. Fix the tdep case first though. Andrew