This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
C++ and multiple compilation units
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: C++ and multiple compilation units
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Tue, 17 Jul 2001 15:04:47 -0500 (EST)
- Cc: gdb at sources dot redhat dot com
Dan, a while back I think you mentioned a problem that would only
appear when debugging C++ programs using Dwarf 2 debug info that used
multiple compilation units. I think the issue was that our current
dwarf 2 reader doesn't really handle inter-CU DIE references, and that
GCC was going to start generating them. Our current C++ tests
probably won't catch such a problem --- almost all of the test
programs are a single CU.
Can you give more details on this? Does GCC generate these inter-CU
references now? For what sorts of constructs? Do you have a test
case?