From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26074 invoked by alias); 20 Feb 2020 19:22:56 -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 26056 invoked by uid 89); 20 Feb 2020 19:22:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-wm1-f53.google.com Received: from mail-wm1-f53.google.com (HELO mail-wm1-f53.google.com) (209.85.128.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Feb 2020 19:22:54 +0000 Received: by mail-wm1-f53.google.com with SMTP id a9so3286276wmj.3 for ; Thu, 20 Feb 2020 11:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zBV7IjclXdKAQ1trlfJnnFN2kwcDapmHNJjK6lyG9sg=; b=E3djmktmyr2UYFdjagWIsmnTZP9lC/qUyqk/ONz0XHLHS7P9e4/Ma09nl6J6S0A6jB STTGAlRrEj0ZZo8uf0+78sTiUayVGMToYgefZXYmEvDzeCvl5Ctxw5U9iL7Bfx5Wd3s1 hvbcSK6y1lLbcFmWggEUQPBrkltOBQu2gfGTePkPNnK5OlaK3LwU4h6azw60N7BvKxAo KyNWcK3OsRbYWZTrsf/4ML4olZid6s8b6vGG+0TcwLYgvnl9KLVcCWEwSk5/HYNQaxJx yt3IPsczT2yo0wk3DL8krhHo+hP0QgJVbh/1bB5ygDuXJ2v0By0MR/kcO9bvKHD5RNEa Q93g== Return-Path: Received: from localhost (host86-186-80-160.range86-186.btcentralplus.com. [86.186.80.160]) by smtp.gmail.com with ESMTPSA id p5sm612652wrt.79.2020.02.20.11.22.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Feb 2020 11:22:51 -0800 (PST) Date: Thu, 20 Feb 2020 19:22:00 -0000 From: Andrew Burgess To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCHv2] gdb: Allow more control over where to find python libraries Message-ID: <20200220192250.GD3317@embecosm.com> References: <20200206164617.7461-1-andrew.burgess@embecosm.com> <20200219162703.17530-1-andrew.burgess@embecosm.com> <878skxnqib.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878skxnqib.fsf@tromey.com> X-Fortune: Preserve the old, but know the new. X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00836.txt.bz2 * Tom Tromey [2020-02-20 09:59:56 -0700]: > >>>>> "Andrew" == Andrew Burgess writes: > > Andrew> The only change since v1 is rewording of the commit message to make > Andrew> the aim of the patch clearer. > > FWIW, we have a similar situation; one additional thing we do is arrange > to call Py_SetPythonHome to ensure that the user's PYTHONPATH doesn't > break gdb. > > It would be good if the standard gdb did this (I think someone filed > something like this in bugzilla), but I'm not sure it can be done in a > way that's consistent with gdb's other goals, like relocatability. I suspect these bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=23014 https://sourceware.org/bugzilla/show_bug.cgi?id=22503 are the ones. I'll need to think a bit more about what the implications are of making this change... Thanks, Andrew