From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8458 invoked by alias); 24 Jun 2014 02:48:22 -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 8388 invoked by uid 89); 24 Jun 2014 02:48:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f196.google.com Received: from mail-vc0-f196.google.com (HELO mail-vc0-f196.google.com) (209.85.220.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 24 Jun 2014 02:48:08 +0000 Received: by mail-vc0-f196.google.com with SMTP id hy10so1925292vcb.7 for ; Mon, 23 Jun 2014 19:48:05 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.58.116.4 with SMTP id js4mr469126veb.38.1403578085631; Mon, 23 Jun 2014 19:48:05 -0700 (PDT) Received: by 10.220.172.3 with HTTP; Mon, 23 Jun 2014 19:48:05 -0700 (PDT) Date: Tue, 24 Jun 2014 02:48:00 -0000 Message-ID: Subject: Is python dependency detection acceptable? From: Tony Wang To: gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00073.txt.bz2 Hi, there Recently I'm building gdb with python support, and I noticed that gdb with python support will heavily depends on the python environment on the build machine. So if I give the gdb with python support to other PC, and the python environment is different from my build machine, the gdb will fail to launch. Basically, I think python support is not wanted by every user, but it's a little bit confusing for toolchain maintainer to release two version of gdb(with and without python). So is it possible to detect in the gdb, whether the user python environment is ok?(Usually user will have python, but the library path or version may cause the gdb fail to launch). If the user do not have the python, then just disable python function in gdb. I've noticed a hack patch to do this before, it just test the pyinit function in a new thread to see if the python environment is ready. Is such a operation acceptable? BR, Tony