* external variables
@ 2009-07-24 12:45 nagaraju.m
2009-07-24 17:37 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: nagaraju.m @ 2009-07-24 12:45 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: external variables
2009-07-24 12:45 external variables nagaraju.m
@ 2009-07-24 17:37 ` Michael Snyder
[not found] ` <4A6A9C64.6080507@redpinesignals.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2009-07-24 17:37 UTC (permalink / raw)
To: nagaraju.m; +Cc: gdb
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-25 5:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-24 12:45 external variables nagaraju.m
2009-07-24 17:37 ` Michael Snyder
[not found] ` <4A6A9C64.6080507@redpinesignals.com>
2009-07-25 5:48 ` nagaraju.m
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox