From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73123 invoked by alias); 14 Nov 2017 22:44:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 73098 invoked by uid 89); 14 Nov 2017 22:44:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt0-f182.google.com Received: from mail-qt0-f182.google.com (HELO mail-qt0-f182.google.com) (209.85.216.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Nov 2017 22:44:04 +0000 Received: by mail-qt0-f182.google.com with SMTP id 31so30057377qtz.9 for ; Tue, 14 Nov 2017 14:44:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GFnYNwMs2y43rQ+KOOPT+xPTQh2QDybTgENV0zBqUmM=; b=HUT4x2MZ9kJjEYPXW+662zEsCiWv5kSIzdeaMM2g+wdQtxqJ7Ud/F8yGT4dbwuB1NY MzRSgIX053w1blJfTDKFiS362CabibWOrkT2fxoyL4DsyOVHcNCfxtKj09gJY0j9cmeh 5YaboH7PrbQ3EKAN6ktewjUE7w/8wwQuCOJXQk973Fl2XkgzqcXuEtCZPvrsze5rkki+ xXgSp8cPlxrmBwuIFjxtV5W3GtY0x2PmbhslibJO0EfXMdcbb/mGVOtNJL0kXYHxfk+D DkB4tRSwo1JI9SH1zJY7RwHBjLcFd/MR2uvpAkpuqI19yS2l3nRM9Bz0EIxtZFfaHKkE QSRQ== X-Gm-Message-State: AJaThX42JO1tRep7iE7JwotKjhA0ds3GstunJdi/SY0zwCrjspQwIwdH 42VYXCU6JVinR28cWxTOtPgy+RuhBw7T8AAQ+7E= X-Google-Smtp-Source: AGs4zMbRLx6oMoCHgJZrG8YoqUxjMer9aHwm+lgdK8YxJkWcm0vEuPvwf6j7w8JZzUw2EQJGUHIBa538Pwi6KtwyMtI= X-Received: by 10.200.50.39 with SMTP id x36mr24180765qta.255.1510699442795; Tue, 14 Nov 2017 14:44:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.153.208 with HTTP; Tue, 14 Nov 2017 14:44:02 -0800 (PST) In-Reply-To: <1510679293-8244-1-git-send-email-simon.marchi@ericsson.com> References: <1510679293-8244-1-git-send-email-simon.marchi@ericsson.com> From: Yao Qi Date: Tue, 14 Nov 2017 22:44:00 -0000 Message-ID: Subject: Re: [PATCH] Show optimized out local variables in "info locals" To: Simon Marchi Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-11/txt/msg00262.txt.bz2 On Tue, Nov 14, 2017 at 5:08 PM, Simon Marchi w= rote: > > However, this change reveals what I think is a bug in GDB, see: > > http://lists.dwarfstd.org/pipermail/dwarf-discuss-dwarfstd.org/2017-Septe= mber/004394.html > IMO, it is not necessary to emit DW_TAG_lexical_block in concrete instances. See comment #4 in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D37801 At least, looks gcc generates unnecessary debug information, and we need to fix GCC somehow. Whether it is a bug in GDB or not, I don't know. The answer depends on it = is *unnecessary* or *wrong* to have DW_TAG_lexical_block in concrete instances. --=20 Yao (=E9=BD=90=E5=B0=A7)