This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: external variables




nagaraju.m wrote:
Hi Michael,

I have compiled external variables with -g option only....


Michael Snyder wrote:
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?






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]