Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tony Wang <wangzheyu1989@gmail.com>
To: gdb <gdb@sourceware.org>
Subject: Is python dependency detection acceptable?
Date: Tue, 24 Jun 2014 02:48:00 -0000	[thread overview]
Message-ID: <CA+G=Tw1oO6qX=cY7s6PQ-3Apj_wc0RAbdAnPV1zpREE8sEYpOw@mail.gmail.com> (raw)

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


             reply	other threads:[~2014-06-24  2:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24  2:48 Tony Wang [this message]
2014-08-06  2:12 ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+G=Tw1oO6qX=cY7s6PQ-3Apj_wc0RAbdAnPV1zpREE8sEYpOw@mail.gmail.com' \
    --to=wangzheyu1989@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox