From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32985 invoked by alias); 16 Mar 2019 12:58:49 -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 32968 invoked by uid 89); 16 Mar 2019 12:58:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1010, Under, you've, youve X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Mar 2019 12:58:47 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h58tf-0000WE-Af; Sat, 16 Mar 2019 08:58:45 -0400 Received: from [176.228.60.248] (port=2672 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h58tZ-0004Ml-7w; Sat, 16 Mar 2019 08:58:39 -0400 Date: Sat, 16 Mar 2019 12:58:00 -0000 Message-Id: <83sgvnx9g1.fsf@gnu.org> From: Eli Zaretskii To: asmwarrior CC: gdb@sourceware.org In-reply-to: (message from asmwarrior on Sat, 16 Mar 2019 20:41:13 +0800) Subject: Re: How to load C++ pretty-printers References: <835zsjz0f8.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00038.txt.bz2 > From: asmwarrior > Date: Sat, 16 Mar 2019 20:41:13 +0800 > > Under My Windows 7 system, I'm using such commands(I put them in a my.gdb script file) to load and register the pretty printers. > I put the libstdcxx folder in the same folder as the my.gdb file. > > > set auto-load safe-path $debugdir;$datadir/auto-load > python > import sys > sys.path.insert(0, '') > from libstdcxx.v6.printers import register_libstdcxx_printers > # load other pretty printers > end Thanks, but I don't think I understand which part(s) of this are necessary in my case. E.g., is the "set auto-load" command needed/relevant? And what is the my.gdb file, I don't think I have such a file on my system. The pretty-printers that came with GCC are installed where the GCC installation puts them, and I'd prefer not to change that if possible. Also, which of the commands you've shown actually loads the pretty-printers from their file? Thanks again for your response.