This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch rfc] use typedef opaque type implementations


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]