From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85277 invoked by alias); 23 Nov 2015 14:44:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 85267 invoked by uid 89); 23 Nov 2015 14:44:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.6 required=5.0 tests=AWL,BAYES_50,KAM_COUK,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,URI_HEX autolearn=no version=3.3.2 X-HELO: mbob.nabble.com Received: from mbob.nabble.com (HELO mbob.nabble.com) (162.253.133.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Nov 2015 14:44:55 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 8BD881AB6671 for ; Mon, 23 Nov 2015 06:31:56 -0800 (PST) Date: Mon, 23 Nov 2015 14:44:00 -0000 From: Tim Chick To: cygwin@cygwin.com Message-ID: <1448289893881-122909.post@n5.nabble.com> In-Reply-To: <5435302A.6030800@onespin-solutions.com> References: <1408580171694-110722.post@n5.nabble.com> <1408732343936-110800.post@n5.nabble.com> <5423F775.7030208@onespin-solutions.com> <54294CED.9050602@onespin-solutions.com> <20141008121224.GB29235@calimero.vinschen.de> <5435302A.6030800@onespin-solutions.com> Subject: Re: gdb 7.8 consistently fails to run executable - error is MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2015-11/txt/msg00353.txt.bz2 Hi Dominik, In my case, it was not down to the string size being too small. I seemed to suffer exactly the same problem. You get the same error if Windows can't access the dll. This seems to happen for some "special" dlls. The size of any PATH variable won't matter - the path it refers to here is the "realpath" conversion of the dll filename. The simple patch applied makes gdb work for me on Windows 7. workaround_win7_dll_path_too_long.patch Patch also below: --- gdb-7.9.1-1.src/gdb.i686/src/gdb-7.9.1/gdb/windows-nat.c.orig 2015-11-23 11:43:17.834000000 +0000 +++ gdb-7.9.1-1.src/gdb.i686/src/gdb-7.9.1/gdb/windows-nat.c 2015-11-23 14:17:30.302252500 +0000 @@ -623,7 +623,8 @@ windows_make_so (const char *name, LPVOI free (rname); } else - error (_("dll path too long")); + warning (_("dll path too long, or can not be accessed '\"%s\"'"), + name); } /* Record cygwin1.dll .text start/end. */ p = strchr (so->so_name, '\0') - (sizeof ("/cygwin1.dll") - 1); Thanks, Tim -- View this message in context: http://cygwin.1069669.n5.nabble.com/gdb-7-8-consistently-fails-to-run-executable-error-is-dll-path-too-long-tp110722p122909.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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