This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: extern variable
- From: Michael Eager <eager at eagercon dot com>
- To: sumanth <sumanth dot gundapneni at redpinesignals dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 01 Aug 2009 19:22:46 -0700
- Subject: Re: extern variable
- References: <4A71B07A.1030600@redpinesignals.com>
sumanth wrote:
Hi,
How can I make sure the debugging information printed by my
compiler for extern variables is correct.
Make sure you compile with -g. If you don't generate
debug info for the variable, gdb will default to printing
it as an unknown symbol.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077