Better DWARF info for Cmm procedures?

2019-01-05 Thread Ömer Sinan Ağacan
Hi, Currently debugging Cmm is a bit painful because we don't have enough debug information to map assembly to Cmm lines, so I have do the mapping manually. However I realized that when building .cmm files we actually generates some debug information, in form of "ticks": //tick src _c2e::

Re: Better DWARF info for Cmm procedures?

2019-01-06 Thread Ben Gamari
Ömer Sinan Ağacan writes: > Hi, > > Currently debugging Cmm is a bit painful because we don't have enough debug > information to map assembly to Cmm lines, so I have do the mapping manually. > However I realized that when building .cmm files we actually generates some > debug information, in form

Re: Better DWARF info for Cmm procedures?

2019-01-06 Thread Ömer Sinan Ağacan
> However, there is also a slightly more fundamental issue here: GHC's NCG > handles DWARF information with block granularity. Fixing this will be a > bit more involved. See compiler/nativeGen/Dwarf.hs for details. > > One alternative would be to just finish debug information in the LLVM > backend

Re: Better DWARF info for Cmm procedures?

2019-01-07 Thread Ben Gamari
Ömer Sinan Ağacan writes: >> However, there is also a slightly more fundamental issue here: GHC's NCG >> handles DWARF information with block granularity. Fixing this will be a >> bit more involved. See compiler/nativeGen/Dwarf.hs for details. >> >> One alternative would be to just finish debug i