Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Paul Smith <psmith@gnu.org>, gdb@sourceware.org
Subject: Re: GDB with python support: which version of Python?
Date: Fri, 31 May 2013 10:18:00 -0000	[thread overview]
Message-ID: <51A87901.8080401@redhat.com> (raw)
In-Reply-To: <20130531060031.GC4395@adacore.com>

On 05/31/2013 07:00 AM, Joel Brobecker wrote:
>>> Forcing static libraries might work on GNU/Linux systems, but
>>> we've found it to be unworkable in general.
>>
>> Interesting; what kinds of problems did you have?
> 
> Actually, I take back what I said, I was completely confused.
> Sorry! We are indeed using static libraries as far as I can
> tell. The relocation is still necessary, because Python needs
> to be able to find its runtime.
> 
> I had this idea at some point of having GDB dlopen libpython,
> which case it'd be possible to ship shared Python libraries
> without having to worry about LD_LIBRARY_PATH. But our experience
> with VxWorks (WTX) libraries, where we do this, and the fact
> that we have been able to use static libraries, led me to put
> this idea on the side for now.
> 
>>> Here is what we do at AdaCore: we build and install GDB inside
>>> GDB's prefix,
>>
>> I assume you mean build and install _Python_ inside GDB's prefix?
> 
> Yes. I clearly needed more coffee this morning before answering :-/.
> 

IMO, it'd be super nice if we had a page in the wiki describing
this use case, and the mechanism people use to solve it.
Seems like everyone who builds relocatable gdbs meant to be
installed in a multitude of systems (as opposed to a system/distro
gdb), ends up needing to know this.

-- 
Pedro Alves


  reply	other threads:[~2013-05-31 10:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 22:04 Paul Smith
2013-05-31  0:04 ` Paul_Koning
2013-05-31  4:40 ` Joel Brobecker
2013-05-31  5:49   ` Paul Smith
2013-05-31  6:00     ` Joel Brobecker
2013-05-31 10:18       ` Pedro Alves [this message]
2013-05-31 20:23 ` Joseph S. Myers

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=51A87901.8080401@redhat.com \
    --to=palves@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=psmith@gnu.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