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.

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



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