From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75228 invoked by alias); 5 Feb 2018 20:08:14 -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 75201 invoked by uid 89); 5 Feb 2018 20:08:13 -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=H*f:sk:a1b77cd, H*i:sk:SSw0GHw, H*f:CAATAM3F_, H*i:sk:UTZXrJh X-HELO: mail-it0-f68.google.com Received: from mail-it0-f68.google.com (HELO mail-it0-f68.google.com) (209.85.214.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Feb 2018 20:08:12 +0000 Received: by mail-it0-f68.google.com with SMTP id c80so11267337itb.4 for ; Mon, 05 Feb 2018 12:08:11 -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=nJdjKOnU/3byaawrevjKr21ZWpj8kh0S53rVGPeufIE=; b=UFDv1mGlW29Fz1shsJQKzwVlFkk8AOyX6oRUmisdaQMTz+6KTEeZGLGB16DGtJo1ik 97TOIMIjHleX9q0cTtsVAq+3vmet+16ABCH+0heLZhSqYIyJIG2YmY5D5eU+6Qk8GA/3 FbiL+99vow7GGHBYWOmPxqCRyvLhZmQ7qYwtOjzgKr5B0j9BOUiZuHsh9XwMo/Arv5/6 Hhc/j+DRp8urICO1gMmpGls5O+v6HWdDorxwYd8MOTMECPTMVfap6dZQE7ZGoboeEl+6 CV1iV/EkYDanim5dnNa0HlDM3D+I0Gcoemh86VmxbGHQUCqz21TlvT4yVMBDQRHAh3JN N1og== X-Gm-Message-State: APf1xPBFq9u3q01mXmZN2pomBH1/GN6KXh4qPLhDHtH5tw5dD+eVg8pY dmha2k3LV+Ym7CsTYcRkggiDFK57mY4C2dJd0J4= X-Google-Smtp-Source: AH8x224925iPnYwQFs+LSd4sWlRBB2es5tTgQ3fkuM3w7EhyPzo7e5/v9LXttUJ1nV0P+qKOXl5y0tC0ka/4HJEhL6M= X-Received: by 10.36.64.146 with SMTP id n140mr756641ita.46.1517861290440; Mon, 05 Feb 2018 12:08:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.50.198 with HTTP; Mon, 5 Feb 2018 12:08:09 -0800 (PST) In-Reply-To: References: <1517667601.3405.123.camel@gnu.org> <1b58e2df-5425-4f22-510c-d2e9f51040ba@polymtl.ca> <39845077-6bdf-f60d-9bfc-a491e7fa4fc7@gmail.com> <132fbd97-4f0d-020f-1c0f-1d4097800233@polymtl.ca> <6da16f7c-4801-4c57-2197-271db491a88f@gmail.com> From: Jonathan Wakely Date: Mon, 05 Feb 2018 20:08:00 -0000 Message-ID: Subject: Re: gdb 8.x - g++ 7.x compatibility To: Roman Popov Cc: Simon Marchi , Martin Sebor , Manfred , gdb@sourceware.org, "gcc@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-02/txt/msg00034.txt.bz2 On 5 February 2018 at 17:44, Roman Popov wrote: > Interestingly RTTI name also gives no guarantees: > http://en.cppreference.com/w/cpp/types/type_info/name > > << Returns an implementation defined null-terminated character string > containing the name of the type. No guarantees are given; in particular, > the returned string can be identical for several types and change between > invocations of the same program. >> > > It probably makes sense to look how g++ implements > std::type_info::operator== . Probably there are some hints that GDB > algorithm can utilize. > Operator std::type_info::operator== must return true for equivalent types. It's the mangled name.