Mail Archives: djgpp/2013/08/13/23:29:09
On 08/13/2013 11:26 PM, Juan Manuel Guerrero wrote:
>
> Yes, this seems to be the reason. I was able to step through the code compiled with
> gcc481 if I use -gdwarf-2 flag. Now , the question arises, shall djgpp also use DWARF4?
> How much work it will be to implement this?
>
I was also able to reproduce the same problem with gcc-4.6.3 with specifying
DWARF-3 debugging info from command line (-gdwarf-3). Also DWARF3 does not seem
to be OK
There also seems to be some more problems with displaying back-trace in GDB even if
DWARF-2 debugging info is being used.
For testing I tried to run for example xgcc.exe from gcc build tree under GDB (at least
it's real big enough executable instead of small examples)
For some targets GCC defaults to DWARF2 debugging info using some tricks with gcc spec
macros. Maybe we should use something similar. It would of course be better to actually
fix the problem
Andris
PS. If You are interested, You can also try recent 2013-08.11 snapshot of GCC for testing:
http://ap1.pp.fi/djgpp/gcc/test/4.9.0-20130811/
- Raw text -