Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5610
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dje@google.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.04; 'partial': 0.05; 'python': 0.07; '*and*': 0.09; '3.x': 0.09; 'configure,': 0.09; 'environment?': 0.09; 'internals,': 0.09; 'sun,': 0.09; 'scripts': 0.10; 'configure': 0.11; 'am,': 0.14; 'wrote:': 0.14; '*this*': 0.16; 'details).': 0.16; 'docs,': 0.16; 'incompatible': 0.16; 'installs': 0.16; 'paths.': 0.16; 'predict': 0.16; 'received:172.25': 0.16; 'runtime.': 0.16; 'wow,': 0.16; 'subsequent': 0.16; 'variable': 0.21; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'structure': 0.24; 'example': 0.24; 'version': 0.25; 'installation': 0.25; '(see': 0.26; 'windows': 0.26; 'environment': 0.26; 'instead': 0.26; 'van': 0.27; 'message-id:@mail.gmail.com': 0.28; 'load': 0.28; 'problem': 0.29; 'messages.': 0.29; 'subject:Windows': 0.29; "python's": 0.29; 'solution.': 0.29; 'cc:addr:python.org': 0.31; 'child': 0.31; 'functional': 0.31; 'url:docs': 0.33; 'someone': 0.33; 'break': 0.33; 'uses': 0.34; 'using': 0.34; 'url:windows': 0.34; 'decide': 0.34; 'there': 0.35; 'think': 0.36; 'case,': 0.36; 'system.': 0.37; 'some': 0.37; 'case': 0.37; 'url:python': 0.37; 'feels': 0.38; 'received:google.com': 0.38; 'user': 0.38; 'but': 0.38; 'url:org': 0.38; 'used': 0.38; 'cc:2**1': 0.38; 'earlier': 0.39; 'realize': 0.39; 'though,': 0.39; 'solution': 0.40; 'sets': 0.40; 'would': 0.40; 'allows': 0.40; 'here:': 0.61; '2011': 0.62; 'cc:no real name:2**1': 0.63; 'skip:$ 10': 0.67; 'from:addr:google.com': 0.68; 'proposal': 0.68; 'works,': 0.69; 'placed': 0.73; 'soon': 0.76; 'directed': 0.77; 'problematic': 0.84; 'received:10.190': 0.84; 'so:': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1305664534; bh=P0+T7J73z3QE7a0Iew5DmuZzPTE=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=uQaeyqGsC4NCnmBMSi0IP/VHnNOyfqwmLDH2cryw5FPZ7wb78KH8+6os0zEaNG7Pz Ncvj6Kz9kQXU+6f7X1K6w== |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Ps+7nqS1gOwmgGXw5baK1tMThZIBfaT4DVfsdzpSUyI=; b=fr59Y6XycGvD9HwQVevLmit0q7eL88YxYiVH6F4uUIuXtCZp42TYFRnvW3eOf9OrB1 S8aToMwakNbJMJ3H3tfQ== |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eIFnzsQ9CV3+pHmijsR/CuKKyog/ezPdgV9xcdP14AwmHYc8wcFYZ6Wdo8mFcBRs4e IzN2z1X7BSumKZ/sSPuw== |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTimcuE=E4zrxsjEc0u_6YCqOimaNDA@mail.gmail.com> |
| References | <BANLkTikrK8DJOEpACA_uUVdZx25P5pc1tA@mail.gmail.com> <BANLkTimshMHOAnc2xtO=Vjvxg_oEZ0EUJA@mail.gmail.com> <BANLkTi=2xwRJmHfDBULRHidJUecMi0ix+w@mail.gmail.com> <BANLkTinkEF5RUwDr=29c_QBdu=abcGNNCQ@mail.gmail.com> <BANLkTinLZ+UOd3NA_zzU1o6J_odquwHtOw@mail.gmail.com> <BANLkTi=FzYyq7ZMUEC984xK=-qjQ_ZK9UA@mail.gmail.com> <BANLkTimcuE=E4zrxsjEc0u_6YCqOimaNDA@mail.gmail.com> |
| Date | Tue, 17 May 2011 13:35:27 -0700 |
| Subject | Re: Python enabled gdb on Windows and relocation |
| From | Doug Evans <dje@google.com> |
| To | vanboxem.ruben@gmail.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-System-Of-Record | true |
| Cc | gdb@sourceware.org, python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1710.1305664546.9059.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305664547 news.xs4all.nl 49179 [::ffff:82.94.164.166]:45013 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5610 |
Show key headers only | View raw
On Sun, May 15, 2011 at 6:26 AM, Ruben Van Boxem <vanboxem.ruben@gmail.com> wrote: > Wow, I think I have a partial solution. Delving into the Python docs, > for example here: > http://docs.python.org/using/windows.html#finding-modules, you can see > that PYTHONPATH is used first, then the Windows registry, then > PYTHONHOME, then some default relative paths. I placed the python > scripts all in the directory structure like so: > > /bin/gdb > /bin/Lib/<python scripts> > /bin/python27.dll > > This works, even without any manual PYTHONPATH intervention. Problem > is though, that as soon as someone has a PYTHONPATH environment > variable from a (incompatible) Python installation (think different > bitness or version 3.x instead of 2.7.1), I cannot predict what will > go wrong. This problem originates in Python's way of filling in the > search path (sys.path). A true solution in the GDB case to prevent > this collision of an incompatible PYTHONPATH would be that GDB sets an > internal PYTHONPATH as directed by configure, uses that to load its > Python internals, and allows the GDB child processes (apps being > debugged) to use the environment PYTHONPATH. For now, I have a > functional installation, but it will break as soon as someone installs > Python on their system. What if the user *wants* gdb's python to use $PYTHONPATH from his/her environment? To handle *this* case, *and* the case of an incompatible python installation using $PYTHONPATH, there is the $GDB_PYTHONPATH proposal (see earlier email for details). It feels problematic to decide at configure time whether there will or will not be an incompatible python at runtime. [I realize you have subsequent messages. Just replying in sequence.]
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python enabled gdb on Windows and relocation Doug Evans <dje@google.com> - 2011-05-17 13:35 -0700
csiph-web