This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: external variables
- From: Michael Snyder <msnyder at vmware dot com>
- To: "nagaraju.m" <nagaraju dot m at redpinesignals dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Fri, 24 Jul 2009 10:30:15 -0700
- Subject: Re: external variables
- References: <4A69AD24.9030802@redpinesignals.com>
nagaraju.m wrote:
Hi ,
I am using Gcc-4.3.3 and gdb-6.8.
My GDB is unable to print external variables. It is treating
external variables as integers by default and is generating wrong output.
If we explicitly type casting them then it is printing correctly.
Is this complier issue(related to debugging information) or GDB issue
Thanks in advance
Sounds like missing debug info.
Were the external variables compiled with -g?