> -----Original Message-----
> From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of
> Umesh Kalappa
> Sent: Wednesday, January 29, 2014 4:36 AM
> To: gcc@gcc.gnu.org
> Subject: Enable debug info
> 
> Dear All,
> 
> We need to support  the debug info emit for our private port on gcc 4.8.1.
> 
> I was in impression using option -g in the commandline by defualt ,will emit
> the dwarf debugging symbols and the info ,But i was wrong here.
> 
> Anyone in the group point me some references or through some lights on
> how do i enable debug options  in the compiler.

What version of GDB are you using? If you are not using the latest one, the 
DWARF's version might mismatch. Try to add -g and -gdwarf-2 

> 
> Appreciate your comments and Thank you
> ~Umesh

Reply via email to