[Fwd: dwarf2 in GNU assembler 2.10.1]

Nick Clifton nickc@redhat.com
Thu Feb 22 11:16:00 GMT 2001

Hi Yookyung,

> It looks to me that only ".debug_line" section of
> dwarf2 has been implemented.

No, other dwarf2 debug sections can also be generated.

> I am sure that from-assembly-to-object level that section
> might be most important but I am just wondering whether the section
> such as ".debug_info" has been implemented also.

Have a look at the code in gas/dwarf2dbg.c.  In particular the
function dwarf2_finish() which calls out_debug_info().

Note - this file has been modified since the 2.10.1 release, so you
may want to obtain the latest version from the CVS repository, or wait
for the 2.11 sources to be released.

> Yet another question is about ".mdebug".
> Actually I do not know anything about MDEBUG format.
> At first hand, I thought that "stabs" information is somehow
> in ".mdebug" section, because the assembly code generated
> seemed to have stabs information.
> However, having read your reply, I am wondering whether
> it is a debug format different from stabs.

Yes it is different.  As I understand it, it also quite hard to obtain
printed/on-line documentation for the format, but if you examine the
source code in gcc/mips-tfile.c, there should be enough there to help


Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

More information about the crossgcc mailing list