From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28188 invoked by alias); 25 Jul 2009 05:48:08 -0000 Received: (qmail 28176 invoked by uid 22791); 25 Jul 2009 05:48:07 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_57,J_CHICKENPOX_81 X-Spam-Check-By: sourceware.org Received: from mail.redpinesignals.com (HELO mail.redpinesignals.com) (203.196.161.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Jul 2009 05:48:01 +0000 Received: from [192.168.40.83] ([192.168.40.83]) (authenticated user nagaraju.m@redpinesignals.com) by mail.redpinesignals.com; Sat, 25 Jul 2009 11:14:01 +0530 Message-ID: <4A6A9CB4.8070708@redpinesignals.com> Date: Sat, 25 Jul 2009 05:48:00 -0000 From: "nagaraju.m" User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Michael Snyder CC: "gdb@sourceware.org" Subject: Re: external variables References: <4A69AD24.9030802@redpinesignals.com> <4A69EFA7.3070305@vmware.com> <4A6A9C64.6080507@redpinesignals.com> In-Reply-To: <4A6A9C64.6080507@redpinesignals.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00197.txt.bz2 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? >> >> >> >>