From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114317 invoked by alias); 17 Mar 2019 11:03: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 114306 invoked by uid 89); 17 Mar 2019 11:03:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=fair, HX-Languages-Length:904 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 17 Mar 2019 11:03:13 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 55DE95601B; Sun, 17 Mar 2019 07:03:11 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dPGPy9uY5HVj; Sun, 17 Mar 2019 07:03:11 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 3A39556018; Sun, 17 Mar 2019 07:03:11 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id AA7F382D30; Sun, 17 Mar 2019 07:03:10 -0400 (EDT) Date: Sun, 17 Mar 2019 11:03:00 -0000 From: Joel Brobecker To: asmwarrior Cc: Eli Zaretskii , Simon Marchi , gdb@sourceware.org Subject: Re: How to load C++ pretty-printers Message-ID: <20190317110310.GA4414@adacore.com> References: <835zsjz0f8.fsf@gnu.org> <83sgvnx9g1.fsf@gnu.org> <83o96ayfky.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-SW-Source: 2019-03/txt/msg00047.txt.bz2 Hello Asmwarrior, On Sun, Mar 17, 2019 at 09:47:35AM +0800, asmwarrior wrote: > On Sun Mar 17 2019 00:00:29 GMT+0800, Eli Zaretskii wrote: > > So, for the record, I now have this in my ~/.gdbinit > > > > python import sys > > python sys.path.insert(0, 'd:/usr/share/gcc-7.3.0/python') > > source d:/usr/lib/gcc/mingw32/7.3.0/libstdc++.dll.a-gdb.py > > > > (The last line both imports the function register_libstdcxx_printers, > > and calls that function.) > > Thanks Eli and Simon. > > I think I have followed this wiki page: https://sourceware.org/gdb/wiki/STLSupport > And I just the svn command to check-out the latest Python libstdc++ > printers in GCC trunk. So, that page should be updated, at least we > can teach people how to use the python printer bundled with their GCC > release. It is a fair comment. Would you volunteer to help us update it? -- Joel