From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8974 invoked by alias); 17 Mar 2019 15:31:12 -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 8965 invoked by uid 89); 17 Mar 2019 15:31:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-type:charset, HContent-type:text, HContent-type:plain, H*f:sk:1552826 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; Sun, 17 Mar 2019 15:31:10 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5Xkh-000496-Sf; Sun, 17 Mar 2019 11:31:08 -0400 Received: from [176.228.60.248] (port=1272 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h5Xkh-0003fz-5M; Sun, 17 Mar 2019 11:31:07 -0400 Date: Sun, 17 Mar 2019 15:31:00 -0000 Message-Id: <83zhptwma9.fsf@gnu.org> From: Eli Zaretskii To: Philippe Waroquiers CC: brobecker@adacore.com, asmwarrior@gmail.com, simon.marchi@polymtl.ca, gdb@sourceware.org In-reply-to: <1552826392.6197.11.camel@skynet.be> (message from Philippe Waroquiers on Sun, 17 Mar 2019 13:39:52 +0100) Subject: Re: How to load C++ pretty-printers References: <835zsjz0f8.fsf@gnu.org> <83sgvnx9g1.fsf@gnu.org> <83o96ayfky.fsf@gnu.org> <20190317110310.GA4414@adacore.com> <1552826392.6197.11.camel@skynet.be> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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/msg00050.txt.bz2 > From: Philippe Waroquiers > Cc: Eli Zaretskii , Simon Marchi , > gdb@sourceware.org > Date: Sun, 17 Mar 2019 13:39:52 +0100 > > But then: >  p current_program_space->added_solibs[0] > One of the arguments you tried to pass to operator[] could not be converted to what > the function wants. > (why is then GDB not telling me what the function wants ?). > I am finally doing > p (*(struct so_list*)0x56275a765a60) > > But that all looks like a 'backward' user experience: Is that a problem with GDB or with the pretty-printer? If the latter, it might be worth telling this to the GCC folks. Thanks.