From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22426 invoked by alias); 2 Mar 2003 18:35:52 -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 22419 invoked from network); 2 Mar 2003 18:35:51 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 2 Mar 2003 18:35:51 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18paCl-0005gr-00 for ; Sun, 02 Mar 2003 14:37:03 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18pYJS-0005Ya-00 for ; Sun, 02 Mar 2003 13:35:50 -0500 Date: Sun, 02 Mar 2003 18:35:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [patch rfc] use typedef opaque type implementations Message-ID: <20030302183550.GA21343@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <3E623567.3060508@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E623567.3060508@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00035.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. Looks like as elegant a solution as I could have asked for. Should we put something about this in the coding standards? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer