Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5359

Re: Python enabled gdb on Windows and relocation

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <vanboxem.ruben@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.04; 'think,': 0.05; '#if': 0.07; 'behavior.': 0.07; 'received:mail- qy0-f174.google.com': 0.07; 'python': 0.07; 'be:': 0.09; 'configure': 0.11; 'cc:': 0.14; 'described': 0.14; '_win32': 0.16; 'hardcoded': 0.16; 'posix': 0.16; 'received:209.85.216.174': 0.16; 'windows:': 0.16; 'thanks,': 0.17; 'code.': 0.18; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'linux,': 0.22; 'specified': 0.22; 'platforms,': 0.23; 'set.': 0.23; '+0200': 0.25; 'windows': 0.26; 'van': 0.27; 'message- id:@mail.gmail.com': 0.28; 'date:': 0.28; 'sat,': 0.29; 'subject:Windows': 0.29; 'cc:addr:python.org': 0.31; '(so': 0.31; 'enabled': 0.31; 'fails,': 0.31; 'perhaps': 0.32; "isn't": 0.34; 'skip:" 10': 0.34; 'problem,': 0.35; 'suggestion': 0.35; 'change,': 0.35; 'executable': 0.35; 'fails': 0.35; 'option.': 0.35; 'think': 0.36; 'else': 0.37; 'received:209.85': 0.37; 'revert': 0.38; 'received:google.com': 0.38; 'pretty': 0.38; 'used': 0.38; 'current': 0.38; 'cc:2**2': 0.39; 'where': 0.39; 'from:': 0.39; 'received:209': 0.39; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'special': 0.66; 'reply- to:no real name:2**0': 0.72; 'header:Reply-To:1': 0.72; 'reply- to:addr:gmail.com': 0.78; 'you).': 0.91; 'cc:no real name:2**2': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YScMzO8v4wJon6KRDPverE5iEIshT0OR/cP5zBZ2Zb0=; b=RgTUEW4gL68Smzn96+U0XD8u09A+cdH/lueMR4z4gGhh5I+hAekRCyqCcPoBjlEHOB aJEiFGkPrBuF2xD+E56OmzHCKkKVAho/+x3Q5JV/Jgb/vmXLHMRdGE9I3dLY+NywhFHt q36At5K+BMVRvLQdvJLHsl+3qyb3sZtr7Ic3Q=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=Wm1J/4TDdvkfYgJbfwe1z1eh3hcsaf6KmHO0ZLRHwQpbdEeHldpqvoy1BDqaz+Dt/M Qr59FEv3hk7X8OO7jFm9mbUDurrWQ1ROiggsURsSqpc9c82oGaHkuMbeDYqjy1oGqsFf ydUGJTdamKXnUpL2yeM8roWB92Qe8/IO4WCTo=
MIME-Version 1.0
In-Reply-To <83ei41fx4a.fsf@gnu.org>
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> <83ei41fx4a.fsf@gnu.org>
Date Sat, 14 May 2011 12:10:03 +0200
Subject Re: Python enabled gdb on Windows and relocation
From Ruben Van Boxem <vanboxem.ruben@gmail.com>
To Eli Zaretskii <eliz@gnu.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org, gdb@sourceware.org, dje@google.com
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To vanboxem.ruben@gmail.com
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.1544.1305367806.9059.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 82.94.164.166
X-Trace 1305367806 news.xs4all.nl 41117 [::ffff:82.94.164.166]:40681
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5359

Show key headers only | View raw


2011/5/14 Eli Zaretskii <eliz@gnu.org>:
>> Date: Sat, 14 May 2011 11:09:13 +0200
>> From: Ruben Van Boxem <vanboxem.ruben@gmail.com>
>> Cc: gdb@sourceware.org, python-list@python.org
>>
>> 1. Check hardcoded path; my suggestion would be "<gdb executable>/../lib/python27"
>> 2. If this fails to find the necessary files/scripts, find it like you
>> described above in Linux, without PYTHONPATH set.
>> 3. Check PYTHONPATH.
>>
>> I would think only number one would change, and perhaps be only
>> enabled with a special configure option. Nothing else would have to
>> change, and Windows users would rejoice :)
>
> The problem, I think, is that it's not so easy on Unix to get the
> place where the GDB executable leaves.  There isn't a system call to
> do that (similar to what Windows gives you).
>
> So I think on Posix platforms, number 2 would be used most of the
> time.
>

I understand. So better/feasible would be:

Windows: Check <gdb executable>/../lib/python27 or any configure-time
specified relative path to gdb executable? If that fails, revert to
current behavoir.

POSIX (so pretty much everythin else): Keep current behavior.

Which would come down to a configure option+ a small block of #if
_WIN32 code in the Python part of the code.

Thanks,

Ruben

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python enabled gdb on Windows and relocation Ruben Van Boxem <vanboxem.ruben@gmail.com> - 2011-05-14 12:10 +0200

csiph-web