From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32387 invoked by alias); 9 Jul 2010 06:04:28 -0000 Received: (qmail 32104 invoked by uid 22791); 9 Jul 2010 06:04:27 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-px0-f169.google.com (HELO mail-px0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Jul 2010 06:04:21 +0000 Received: by pxi7 with SMTP id 7so1498911pxi.0 for ; Thu, 08 Jul 2010 23:04:20 -0700 (PDT) Received: by 10.142.193.19 with SMTP id q19mr10169054wff.0.1278655460176; Thu, 08 Jul 2010 23:04:20 -0700 (PDT) Received: from [172.16.146.33] ([60.12.143.10]) by mx.google.com with ESMTPS id x18sm625868wfd.8.2010.07.08.23.04.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Jul 2010 23:04:19 -0700 (PDT) Message-ID: <4C36BB5F.2000208@gmail.com> Date: Fri, 09 Jul 2010 06:04:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Nenad Vukicevic CC: gdb@sourceware.org, gcc@gcc.gnu.org Subject: Re: Two debug entries for one local variables, is it a bug in GCC or GDB References: <4C368A68.9010308@gmail.com> <4C36BA7D.20007@intrepid.com> In-Reply-To: <4C36BA7D.20007@intrepid.com> Content-Type: text/plain; charset=UTF-8; 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: 2010-07/txt/msg00034.txt.bz2 On 2010-7-9 13:58, Nenad Vukicevic wrote: > I reported something similar back in January: > > http://gcc.gnu.org/ml/gcc/2010-01/msg00054.html > > As I recall, GCC creates duplicates. > > Nenad Thanks for the reply. I also found your message, This bug has been fixed,see: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39563 You bug report is related to global variables. My problem is related to a auto variables. Especially the variable will be returned. Something like: T foo() { T a; T b; T c; ... return b; } then, the unreturned variable "a" and "c" works well. But the returned variable "b" will have two debug information entries.