From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31440 invoked by alias); 15 Mar 2014 20:06:46 -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 31430 invoked by uid 89); 15 Mar 2014 20:06:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 15 Mar 2014 20:06:44 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N2H00C00UD49T00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sat, 15 Mar 2014 22:06:41 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2H00BMYUJ4W770@a-mtaout20.012.net.il>; Sat, 15 Mar 2014 22:06:41 +0200 (IST) Date: Sat, 15 Mar 2014 20:06:00 -0000 From: Eli Zaretskii Subject: Re: New feature "source-id" In-reply-to: To: Doug Evans Cc: gerhard.gappmeier@ascolab.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83siqjb50u.fsf@gnu.org> References: <7365721.BnaR1nHazz@lt-gergap> X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00344.txt.bz2 > Date: Sat, 15 Mar 2014 10:32:12 -0700 > From: Doug Evans > Cc: gdb-patches > > But IMO the fetching of source must go through the Extension Language API. > See gdb/extension*.[ch]. > I.e., don't do the popen in gdb. Just call out to the extension > language via the API (e.g, Python), passing it the necessary > parameters. That would mean the feature will be unavailable in a GDB compiled without Python and Guile.