This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Running without Python
- From: Paul Smith <psmith at gnu dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: GDB Development <gdb at sourceware dot org>
- Date: Mon, 28 Oct 2013 17:17:14 -0400
- Subject: Re: Running without Python
- Authentication-results: sourceware.org; auth=none
- References: <1382993004 dot 3496 dot 79 dot camel at pdsdesk> <87txg19kx9 dot fsf at fleche dot redhat dot com>
- Reply-to: psmith at gnu dot org
On Mon, 2013-10-28 at 14:53 -0600, Tom Tromey wrote:
> >>>>> "Paul" == Paul Smith <psmith@gnu.org> writes:
>
> Paul> But, it pretty much just stops:
> Paul> $ my-gdb
> Paul> Could not find platform independent libraries <prefix>
> Paul> Could not find platform dependent libraries <exec_prefix>
> Paul> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> Paul> ImportError: No module named site
> Paul> $
>
> Paul> Any thoughts about this? I guess I need to build GDB twice, once with
> Paul> Python for those systems that can use it and once without for those
> Paul> systems that don't have it. Is there any interest in making this work
> Paul> "better"?
>
> This should be better in a more recent gdb. Please try git master.
> We've made it so that if Python initialization fails, then gdb still
> works but disables all the Python functionality.
Is this in 7.6.1, or just master?
> However, we haven't done the dlopen thing. It's been discussed but I
> think it is difficult to do sanely, and especially difficult to do in a
> way that handles differences between versions of libpython.
That's OK with me, actually, because I've linked python statically so I
don't have to worry about it. It's just the support .py stuff that's
missing when I copy GDB around.
Cheers!