From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79472 invoked by alias); 3 Feb 2018 03:17:43 -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 78159 invoked by uid 89); 3 Feb 2018 03:17:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=I*:base, I*:new, 8x, H*c:alternative X-HELO: mail-wr0-f176.google.com Received: from mail-wr0-f176.google.com (HELO mail-wr0-f176.google.com) (209.85.128.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 03 Feb 2018 03:17:41 +0000 Received: by mail-wr0-f176.google.com with SMTP id b52so4053221wrd.10 for ; Fri, 02 Feb 2018 19:17:40 -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:from:date:message-id:subject:to; bh=nJRSnehjKH1EvmGG7iF+DQrYof8OkFw93GQRCcqmiH0=; b=awi7FnEM+6DL3jf0AjE22+txZGh0aE1bC9M7fDC0h0jEPnnc8/ryR81dBUac3iGX9C t+mWI+llezZ0b/ExA84WZOTasn++NltVZZiwfHAxxgYGRNokhJcnuPZwYm1pk5RKWc4/ N0chANuWW1hjpp2YWyzDTq1gQQBnvdiVKo0HC93QyDnVmTAU401T2vcyBjmA0rb7iVIY X49d6iLt5aJNCeo7Si9raQxX7a2p1ZUPc9+iwqAqGDhh6yq0CVpPVgSUtsADlYMz3Y2e R9lJhoeUuW2eVA4VEC2K1fQSPItdxxMo2ryFomg7yA4sFVtCJAAAfU/cD+R6NzGu2Ugi nxoA== X-Gm-Message-State: AKwxytdeRQuo49se8HCz7v/Odap2kVQ62Se3JylX9JoyAN5OXhytP9Gi fE+bXCRHRB1WvB+YKSQeWDL6QOb2PdHzV1c8h/u9WQ== X-Google-Smtp-Source: AH8x2262VgL6ZAapfIGkGUJQOmIeizfSRuAJ4RWJjufsJpcBQrXMl1ANaus22HKjcSotw328BScrfMtGVrebdhnCMx8= X-Received: by 10.223.164.148 with SMTP id g20mr36722633wrb.49.1517627858990; Fri, 02 Feb 2018 19:17:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.122.19 with HTTP; Fri, 2 Feb 2018 19:17:38 -0800 (PST) From: Roman Popov Date: Sat, 03 Feb 2018 03:17:00 -0000 Message-ID: Subject: gdb 8.x - g++ 7.x compatibility To: gdb@sourceware.org, gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00008.txt.bz2 Hello, I'm trying to switch from g++ 5.4 to g++ 7.2. GDB 8.0.1 however does not understand RTTI generated by g++7.2, so my Python scripts for GDB are not working. Here is a code example: struct base { virtual ~base(){} }; template< int IVAL, unsigned UVAL, unsigned long long ULLVAL> struct derived : base { int x = IVAL + + UVAL + ULLVAL; }; int main() { base * o = new derived<1,2,3>{}; return 0; } When compiled with g++5.4 I can read value of x in debugger. When compiled with g++7.2 gdb reports: warning: RTTI symbol not found for class 'derived<1, 2u, 3ull>' Problem here is that type name saved in debug information is *derived<1, 2, 3>*, not *derived<1, 2u, 3ull>* Do you plan to fix this anytime soon? Thanks, Roman