X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=Ptczx9pr5tmQJb4x1D0kQ0aDRLisz o09FY5/czRdGvpx7gmZRT9WycCTnClnu4dENV72ZkmE7xoJW2SNipN6Z5uVSvVnr ZKA06GvbNS2TSZcZxduysRx/n5tWgN5sXxdGZ21MbNEHsmNBtfNYK1h3T4ph2TMR 9oDwTwgcYK9aGw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=2BEq95eBvssPCMWYe8gc5E5hZSg=; b=l17 gEPniEaAYGI9eJWa3YYnMj6pWR3xX2vLHl5jcj/MjvAoZ2Et9NPfeU9/mAtITlpI WLMmtR4m15P5Ikdk3HgoKTBO7q//Ocg7g2+QlSbmIb7yYgvwin3q/ld6EEmR18FZ tn9qdiLMBB/Sl4TdCkGQs4nNTXfZBbJytuGfe6vg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pb0-f43.google.com MIME-Version: 1.0 X-Received: by 10.68.97.129 with SMTP id ea1mr31814947pbb.73.1403001910965; Tue, 17 Jun 2014 03:45:10 -0700 (PDT) Date: Tue, 17 Jun 2014 11:45:10 +0100 Message-ID: Subject: Pyclewn doesn't run because Cygwin gdb's version string is non-standard From: Philip Daniels To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Hi, I am trying to run Pyclewn (gdb front end for Vim) under Cygwin. Installation went fine, but when starting Pyclewn, it starts gdb and attempts to determine the version number: Exception in pyclewn: "cannot find the gdb version" source line: "raise ClewnError('cannot find the gdb version')" at /usr/lib/python3.2/site-packages/clewn/gdb.py:357 pyclewn aborting... The cause appears to be that the version number reported by Cygwin gdb is non-standard, Pyclewn doesn't like the "(cygwin-special)" after the verison number: GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special) The relevant bit of Pyclewn is def parse_gdb_version(header): r"""Parse the gdb version from the gdb header. From GNU coding standards: the version starts after the last space of the first line. >>> DOCTEST_GDB_VERSIONS = [ ... r'~"GNU gdb (GDB) 7.5.1\n"', ... r'~"GNU gdb (Sourcery CodeBench Lite 2011.09-69) 7.2.50.20100908-cvs\n"', ... r'~"GNU gdb (GDB) SUSE (7.5.1-2.5.1)\n"', ... r'~"GNU gdb (GDB) Fedora (7.6-32.fc19)\n"', ... r'~"GNU gdb (GDB) 7.6.1.dummy\n"', ... ] I checked the gdb source code, and it appears that the comment in Pyclewn is correct w.r.t. the format. Here is the relevant bit of top.c: /* Print the GDB banner. */ void print_gdb_version (struct ui_file *stream) { /* From GNU coding standards, first line is meant to be easy for a program to parse, and is just canonical program name and version number, which starts after last space. */ For info and links to bug reports: http://stackoverflow.com/questions/18157954/fedora-19-pyclewn-cant-find-gdb-version -- Philip Daniels. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple