This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch rfc] use typedef opaque type implementations
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 2 Mar 2003 13:35:50 -0500
- Subject: Re: [patch rfc] use typedef opaque type implementations
- References: <3E623567.3060508@redhat.com>
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