From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31915 invoked by alias); 17 Mar 2015 13:44:28 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31685 invoked by uid 89); 17 Mar 2015 13:44:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL autolearn=ham version=3.3.2 X-HELO: sasl.smtp.pobox.com Received: from pb-sasl1.int.icgroup.com (HELO sasl.smtp.pobox.com) (208.72.237.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Mar 2015 13:44:26 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 83577350EA; Tue, 17 Mar 2015 09:44:24 -0400 (EDT) Received: from pb-sasl1.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 7D00C350E9; Tue, 17 Mar 2015 09:44:24 -0400 (EDT) Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 9E010350E7; Tue, 17 Mar 2015 09:44:23 -0400 (EDT) From: Andy Wingo To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: Relationship between GDB commands in Python and Guile References: <87bnkgoki0.fsf@igalia.com> <86fv93g79l.fsf@gmail.com> Date: Tue, 17 Mar 2015 13:44:00 -0000 In-Reply-To: <86fv93g79l.fsf@gmail.com> (Yao Qi's message of "Tue, 17 Mar 2015 12:04:06 +0000") Message-ID: <878uevbux7.fsf@igalia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: B8AD8B3C-CCAB-11E4-A033-96E29252DF99-02397024!pb-sasl1.pobox.com X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00485.txt.bz2 Hi, Quick answer: On Tue 17 Mar 2015 13:04, Yao Qi writes: > Andy Wingo writes: > >> An open question would be how to indicate that python extensions win >> over guile extensions. Perhaps we should query extensions by language, >> then, and then list python ones first. Having a unified "priority" >> doesn't make sense in that context. Perhaps the pretty-printing (etc) >> mechanism should, in that case, instead be more fine-grained -- not just >> "try python first", but instead trying the printers (frame filters, etc) >> in order of priority. Perhaps that's too much setup work though; not >> sure what the cost is to "enter" python mode etc. > > I'd like to know why is such question raised? In practise, is it common > that users install two pretty-printers, one is python and one is guile? Imagine a program that uses two libraries, one of which has a libfoo-gdb.py file installed, and the other that has libbar-gdb.scm installed. Then you could have pretty printers, frame filters, unwinders, etc defined for each library but in different languages. Andy