Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5245
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!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.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.04; 'think,': 0.05; 'way:': 0.05; 'currently,': 0.07; 'imply': 0.07; 'received:mail-qy0-f174.google.com': 0.07; 'suggesting': 0.07; 'working:': 0.07; 'python': 0.07; '32-bit': 0.09; 'list)': 0.09; 'prefix': 0.09; 'url:gmane': 0.09; 'linux': 0.11; '(windows': 0.16; '__init__': 0.16; 'dll.': 0.16; 'expected.': 0.16; 'install.': 0.16; 'received:209.85.216.174': 0.16; 'shed': 0.16; '"python': 0.16; 'traceback': 0.16; '(most': 0.16; 'this?': 0.18; 'suggest': 0.19; 'integrate': 0.19; 'much!': 0.19; 'skip:r 30': 0.19; 'temporary': 0.19; 'command': 0.19; 'to:2**1': 0.20; 'variable': 0.21; 'header:In-Reply-To:1': 0.22; 'manually': 0.22; 'so.': 0.22; 'trying': 0.23; '(without': 0.23; 'happen.': 0.23; 'last):': 0.23; 'sfxlen:0': 0.23; 'wrong?': 0.23; 'version': 0.25; 'ps:': 0.25; 'lists,': 0.26; 'correct': 0.26; 'windows': 0.26; 'environment': 0.26; 'there.': 0.26; 'skip:b 20': 0.27; 'message- id:@mail.gmail.com': 0.28; 'lists': 0.28; 'thanks': 0.29; 'changing': 0.29; 'installed': 0.29; 'problem': 0.29; 'hi,': 0.29; 'subject:Windows': 0.29; 'up.': 0.30; "won't": 0.30; 'apologies.': 0.31; 'anyone': 0.31; 'perhaps': 0.32; 'import': 0.32; 'to:addr :python-list': 0.32; 'another': 0.32; "i've": 0.33; '(including': 0.33; 'minor': 0.33; 'using': 0.34; 'light': 0.35; 'requires': 0.35; 'there': 0.35; 'file': 0.35; 'print': 0.35; '"",': 0.35; 'url:comp': 0.35; 'allow': 0.36; 'missing': 0.36; 'think': 0.36; 'enough': 0.37; 'problems': 0.37; 'some': 0.37; 'however': 0.37; 'should': 0.37; 'received:209.85': 0.37; 'issue': 0.37; 'run': 0.37; 'conflict': 0.38; 'received:google.com': 0.38; 'install': 0.38; 'but': 0.38; 'reasons': 0.38; 'files': 0.38; 'url:org': 0.38; 'used': 0.38; 'current': 0.38; 'anything': 0.38; 'built': 0.39; 'mailing': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'issues': 0.39; 'works': 0.40; 'basic': 0.40; 'solution': 0.40; 'projects.': 0.40; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'might': 0.40; 'link': 0.62; 'truly': 0.64; 'below,': 0.71; 'reply-to:no real name:2**0': 0.72; 'header:Reply-To:1': 0.72; 'reply- to:addr:gmail.com': 0.78; 'time"': 0.84; 'plain-text': 0.91; 'url:comments': 0.93 |
| 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:content-type :content-transfer-encoding; bh=HOgd1PkHERYoieVo9mLrAeFRcVkZf/BHoLEOFKEdQ6w=; b=jcPEEhrGoa0n2ZurcRTJNsmT9vZaUid5us14HvUipZ8ZFxSWEBKEY9XW66z72uYo6e z89SqBJXMEpfq7p3Puk2TijjOxKIpHHoq6r/LYkAVSMAkAyyMbc5jThVxJIzbv65C2rh Y/c1hc0vzDLbLSQFobIaHqYUCSLaumhf9B6Ww= |
| 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:content-type:content-transfer-encoding; b=OXTbH2jwWX73S+YNjGQK5wumiMYuKFuTgeYE/G4ljeMvUVqc4r5O5ieQzbzxHSi7Zp 4aLTGcvqvlhMYXpVR6lTNA69Uz7MEofaLxUiYB0WuOLbPKlhEpA/YsA9VRRxcRpSjo3r wSnC3G64Odtj7lvKU1R2+14+X5purz4spw9KA= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTikrK8DJOEpACA_uUVdZx25P5pc1tA@mail.gmail.com> |
| References | <BANLkTikrK8DJOEpACA_uUVdZx25P5pc1tA@mail.gmail.com> |
| Date | Thu, 12 May 2011 18:19:55 +0200 |
| Subject | Python enabled gdb on Windows and relocation |
| From | Ruben Van Boxem <vanboxem.ruben@gmail.com> |
| To | gdb@sourceware.org, python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| 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.1477.1305217204.9059.python-list@python.org> (permalink) |
| Lines | 77 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305217204 news.xs4all.nl 41102 [::ffff:82.94.164.166]:38634 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5245 |
Show key headers only | View raw
(now in plain-text as required by gdb mailing list) Hi, I am currently trying to integrate Python support into my toolchain build (including GDB of course). It is a sysrooted binutils+GCC+GDB+mingw-w64 toolchain. I currently have the basic setup working: I can link gdb with my manually generated import lib to the python dll from the official Windows install. If there is anything I am missing or a very easy solution to the problems decsribed below, please just say so. I am only suggesting what I would like to happen. Now on to the problems I'd like to discuss: 1. gdb.exe won't start without me having set PYTHONPATH manually. I understand the need for this, but as gdb requires Python 2, and users of my toolchain may have installed Python 3 or a 32-bit version python they want to use from the same environment (without changing their own PYTHONPATH), there is no way to run python-enabled gdb. What I suggest is perhaps a Windows only change: a kind of "sysroot"ed gdb+python, so that the python used by gdb is truly built in. I cannot require everyone using my toolchain to install the correct python version for obvious reasons (Windows != Linux in this regard). However way this is tackled, the gdb I want should look relative to it's current (relocatable) directory for Python modules/*;py files in a well-defined directory at build time. That would allow me to distribute gdb in a very clear way: <sysroot> <sysroot>/bin <sysroot>/bin/python27.dll <sysroot>/bin/gdb.exe <sysroot>/lib <sysroot>/lib/python27 <sysroot>/lib/python27/<all *.py files from the official windows install> Currently, this scheme only works if I manually set the PYTHONPATH environment variable to <root>/lib/python27. This global environment variable could conflict with existing Python installations, that may have another bitness (I have 64- and 32-bit toolchains). I think you can see there are problems enough with the current set up. I also read this old discussion: http://comments.gmane.org/gmane.comp.gdb.patches/62811 that might imply that the PYTHONPATH check is something built-in to the python dll. Can anyone shed some light on this? 2. With PYTHONPATH set as a temporary workaround, gdb starts, but spits out a traceback: Traceback (most recent call last): File "<string>", line 35, in <module> File "m:\development\mingw64\share\gdb/python/gdb/__init__.py", line 18, in <module> gdb.command.pretty_printers.register_pretty_printer_commands() File "m:\development\mingw64\share\gdb/python/gdb\command\pretty_printers.py", line 368, in register_pretty_printer_commands InfoPrettyPrinter() File "m:\development\mingw64\share\gdb/python/gdb\command\pretty_printers.py", line 100, in __init__ gdb.COMMAND_DATA) RuntimeError: Could not find command prefix info. This is a minor problem I think, as "python import time" "python print time.clock()" works as expected. What is wrong? Thanks very much! Ruben PS: I've sent this to both the gdb and python mailing lists, as these issues have a large overlap to both projects. PS2: Please reply-to-all as I do not want daily mails from both mailing lists on every issue brought up there. My apologies.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Python enabled gdb on Windows and relocation Ruben Van Boxem <vanboxem.ruben@gmail.com> - 2011-05-12 18:19 +0200
csiph-web