Handling aliases in debug information

Michael Elizabeth Chastain mec@shout.net
Wed Sep 24 19:53:00 GMT 2003


Both (a) and (c).

I have a current problem with anonymous unions also.
The gdb test script for anon unions has more FAILs with
g++ HEAD than g++ 3.3.1.

g++ has an issue with the variable scopes of 'main' in C++.
'main' is special because the standard explicitly allows 'main'
  to return an 'int' but not have a return statement at the end
  (which returns a success value).
So g++ has a little bit of special code.

I started pursuing this a few months ago and got sidetracked
because my test program made gcc ICE, and by the time that got
fixed, I was working on something else.

Can you separate the two issues -- have your 'main' function
call a different function with the anonymous union in it.
That would help.

The gcc people can't fix PR's if I don't file them!
After gdb 6.0 ships I will get back to debug info regressions
from gcc 3.3.1 to gcc HEAD.

Michael C
GDB QA Guy



More information about the Gdb mailing list