Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: "nagaraju.m" <nagaraju.m@redpinesignals.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: external variables
Date: Fri, 24 Jul 2009 17:37:00 -0000	[thread overview]
Message-ID: <4A69EFA7.3070305@vmware.com> (raw)
In-Reply-To: <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?



  reply	other threads:[~2009-07-24 17:37 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 [this message]
     [not found]   ` <4A6A9C64.6080507@redpinesignals.com>
2009-07-25  5:48     ` nagaraju.m

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=4A69EFA7.3070305@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb@sourceware.org \
    --cc=nagaraju.m@redpinesignals.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