From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15819 invoked by alias); 5 Feb 2018 11:05:09 -0000 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 Received: (qmail 15715 invoked by uid 89); 5 Feb 2018 11:05:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=unavailable version=3.3.2 spammy=HCc:D*ca, unfortunate, minute X-HELO: mail-it0-f47.google.com Received: from mail-it0-f47.google.com (HELO mail-it0-f47.google.com) (209.85.214.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Feb 2018 11:05:04 +0000 Received: by mail-it0-f47.google.com with SMTP id e1so15460344ita.0 for ; Mon, 05 Feb 2018 03:05: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; bh=a6XqbGB1kezWbodyVcSRar526qB/PNBw0XAHxR1VLDo=; b=HOytiYBN4RZqEOtPfPXZZdxfIjsgNA2nMAIZ+34+MJkZVlYbqATGhkxg+vjnVmxfnh fZESmHaBHjwabwE+A0LGNwJMF70Lrgo6PE0hTfnjXWUUz4jlyMnr+NvnGHM+O+AhZywi MUEuxaCpb0XqUk1FoQeWl0nzPIxlsI6ClJO8UUAzbCaaMzz7a3wqKqvrYShFPNY4WEa1 y5czosLrkV/hcnFcSiqSJRB2T72cbwxEqA7cMpsrl329XrD6Z1N3jw/BaLBgjZQknKwZ DijX6+Wk1V71pZZUW7i6NLYgVuV0K6Vg8syYGqb06sUdGZgiuV6hqzT1tgV+09cYDoFl wU4w== X-Gm-Message-State: APf1xPCIB5jISD83gUBnpJmR72EYdfOVSQGJJmkoPKnFdOWcAURCjJqm nHsckN5HaBPohgN6VraixtqpqRLg+EWtJ2N/a7Y= X-Google-Smtp-Source: AH8x224vYzbDhkGmGmiGYZvgPBlzEZWWlscFPlTMyiRvWbV+hylD/6QEY24o1ziatujlbsp0yQ6i5YntYd78NBZcYKc= X-Received: by 10.36.28.82 with SMTP id c79mr8588551itc.128.1517828702826; Mon, 05 Feb 2018 03:05:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.50.198 with HTTP; Mon, 5 Feb 2018 03:05:02 -0800 (PST) In-Reply-To: <39845077-6bdf-f60d-9bfc-a491e7fa4fc7@gmail.com> References: <1517667601.3405.123.camel@gnu.org> <1b58e2df-5425-4f22-510c-d2e9f51040ba@polymtl.ca> <39845077-6bdf-f60d-9bfc-a491e7fa4fc7@gmail.com> From: Jonathan Wakely Date: Mon, 05 Feb 2018 11:05:00 -0000 Message-ID: Subject: Re: gdb 8.x - g++ 7.x compatibility To: Martin Sebor Cc: Simon Marchi , Manfred , gdb@sourceware.org, "gcc@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-02/txt/msg00024.txt.bz2 On 4 February 2018 at 19:17, Martin Sebor wrote: > I think this message would be the most meaningful if the "auto" > part were replaced with the deduced type. With that, the suffix > of the constant isn't important, just as in other contexts. > > I didn't consider the use of auto as a template parameter but > I don't think it changes anything. There, just like in other > contexts, what's important is the deduced types and the values > of constants, not the minute details of how they are spelled. > > That said, it wasn't my intention to make things difficult for > the debugger. But changing GCC back to include the suffix, > even just in the debug info, isn't a solution. There are other > compilers besides GCC that don't emit the suffixes, and there > even are some that prepend a cast to the number, so if GDB is > to be usable with all these kinds of producers it needs to be > able to handle all of these forms. The change is a little unfortunate, I pointed out the problems for debuginfo and template recently in another context: https://sourceware.org/bugzilla/show_bug.cgi?id=21492#c1 As I said there, simply comparing strings from the debuginfo is insufficient for Clang anyway. Now it is for GCC too.