]> granicus.if.org Git - yasm/commit
Fix #223: Correctly handle "./" paths in dwarf2.
authorPeter Johnson <peter@tortall.net>
Mon, 6 Sep 2010 19:33:25 +0000 (19:33 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 6 Sep 2010 19:33:25 +0000 (19:33 -0000)
commit65f6f7a1ffd23bd28ef900e63dc1f53952383e34
tree3dd086fb95abb55ba2b2bae7652e3fa64d52ed2c
parent5355299056d298c91e5528eb61f05122cb41914f
Fix #223: Correctly handle "./" paths in dwarf2.

As dwarf2 has a directory table in addition to a filename table, we split
the provided pathname when generating the filename table.  This correctly
combined both "./foo" and "foo" into a single filename table entry.
However, we were only matching on pathname instead of dir+filename when
actually generating the dwarf opcodes, resulting in not finding the "./foo"
version.  Fix to check both dir and filename separately, splitting the same
way we do when generating the filename table.

svn path=/trunk/yasm/; revision=2367
modules/dbgfmts/dwarf2/dwarf2-line.c
modules/dbgfmts/dwarf2/tests/Makefile.inc
modules/dbgfmts/dwarf2/tests/gen64/Makefile.inc [new file with mode: 0644]
modules/dbgfmts/dwarf2/tests/gen64/dwarf2_gen64_test.sh [new file with mode: 0755]
modules/dbgfmts/dwarf2/tests/gen64/dwarf64_pathname.asm [new file with mode: 0644]
modules/dbgfmts/dwarf2/tests/gen64/dwarf64_pathname.hex [new file with mode: 0644]