]> granicus.if.org Git - yasm/commit
Generate DWARF2 information from asm source, closing #43. Asm-level source
authorPeter Johnson <peter@tortall.net>
Sat, 11 Feb 2006 21:58:35 +0000 (21:58 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 11 Feb 2006 21:58:35 +0000 (21:58 -0000)
commitb2e43e41d37cf858eca4d638c70a70d11c0b7fd5
tree2288d64d5ea88a54a93cb6bb9aee37b2bd2ffc1d
parent2eae22d7f9a1e6ad532a862f8a03d6797047ee0d
Generate DWARF2 information from asm source, closing #43.  Asm-level source
debug information is generated if no file/loc directives are used.  Also will
generate basic DWARF2 info/abbrev/aranges if not specified in source.  What's
not handled is multiple code sections; I need to figure out how DWARF2 expects
these to be generated.

The implementation of this refactors all the line generation into
dwarf2-line.c and makes dwarf2-dbgfmt.c contain only the core DWARF2
functions.

One challenge yet to be taken care of is how to test the automatic generation,
as the current working directory is saved into the output object file.

* dwarf64_2loc: Update so built-in info generation doesn't happen.

svn path=/trunk/yasm/; revision=1376
modules/dbgfmts/dwarf2/Makefile.inc
modules/dbgfmts/dwarf2/dwarf2-aranges.c [new file with mode: 0644]
modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c
modules/dbgfmts/dwarf2/dwarf2-dbgfmt.h [new file with mode: 0644]
modules/dbgfmts/dwarf2/dwarf2-info.c [new file with mode: 0644]
modules/dbgfmts/dwarf2/dwarf2-line.c [new file with mode: 0644]
modules/dbgfmts/dwarf2/tests/pass64/dwarf64_2loc.asm
modules/dbgfmts/dwarf2/tests/pass64/dwarf64_2loc.hex