Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "nagaraju.m" <nagaraju.m@redpinesignals.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: external variables
Date: Sat, 25 Jul 2009 05:48:00 -0000	[thread overview]
Message-ID: <4A6A9CB4.8070708@redpinesignals.com> (raw)
In-Reply-To: <4A6A9C64.6080507@redpinesignals.com>



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?
>>
>>
>>
>>


      parent reply	other threads:[~2009-07-25  5:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 12:45 nagaraju.m
2009-07-24 17:37 ` Michael Snyder
     [not found]   ` <4A6A9C64.6080507@redpinesignals.com>
2009-07-25  5:48     ` nagaraju.m [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A6A9CB4.8070708@redpinesignals.com \
    --to=nagaraju.m@redpinesignals.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox