This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [RFC] Slightly improved DWARF2 debug info for Fortran



On Oct 24, 2006, at 13:50, Daniel Jacobowitz wrote:
On Mon, Oct 23, 2006 at 12:27:43AM +0200, Laurent GUERBY wrote:
If this change can be turned into something that helps for Ada too,
please let me know.

In practice debugging works quite well with Ada so I'm assuming there are some parts of gigi/dwarf2out/gdb that have been taught how to deal with this kind of stuff, so may be fortran can benefit.

You would have to talk with e.g. Joel Brobecker about this. The current way it works is extremely Ada specific, and only uses DWARF-2 for some parts; they are working, slowly, on improving that.

The quick answer is that when we started with GNAT, DWARF was used only on IRIX (IIRC) and we had to make do with whatever existing debug formats were used for C. Ada-specific debugging information was mostly encoded through suffixes in symbol names. While this was the only practical solution a decade ago, I wouldn't recommend doing this for a new implementation.

-Geert

BTW. The encodings are documented in exp_dbug.adb.


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