This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Enable debug info
- From: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- To: Umesh Kalappa <umesh dot kalappa0 at gmail dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 30 Jan 2014 03:49:44 +0000
- Subject: RE: Enable debug info
- Authentication-results: sourceware.org; auth=none
- References: <CAGfacvQPcB5hj-VnHpROFN1VMS8pgb3UNF31WEQQP+3XPSkj=A at mail dot gmail dot com>
> -----Original Message-----
> From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@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