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:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; q= dns; s=default; b=bDR9w4h/7krH01Yb9PZ+T/PpVTG6VirTlmMmM+ragsSfA1 ADi7aqe2B2DvM3kxxf0PGutMoglInOZKlnPlT5LHNt8HP1AVkdSBLmR+G/UI861c W4QO8fKZH6yE9A7D+Ma3PukNhVYM84lJTwccvhLreO9Knlj7EFaKM3Xqt24XA= 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:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= default; bh=Rsa21UXY8bFqrrgKI2klaXFQiXM=; b=UEFSTEMFJWhUs/I/hUeB zSlNekgBeVzMrn6czf7kidgCj8Dn1CFXm5Bq+KnR30F6fG6lx3TJqFUCQ+CUWHeS 7s4Vm6WYZWCe9hLijtHdVPNftPaFng0l+e0W+P/uxymgLn5gXRsifGR0mMFuzwmC W4k4jSICjrzULHASBuTNHmA= 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: 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 Date: Mon, 23 Nov 2015 07:44:53 -0700 (MST) From: Tim Chick To: cygwin AT cygwin DOT com Message-ID: <1448289893881-122909.post@n5.nabble.com> In-Reply-To: <5435302A.6030800@onespin-solutions.com> References: <1408580171694-110722 DOT post AT n5 DOT nabble DOT com> <1408732343936-110800 DOT post AT n5 DOT nabble DOT com> <5423F775 DOT 7030208 AT onespin-solutions DOT com> <54294CED DOT 9050602 AT onespin-solutions DOT com> <20141008121224 DOT GB29235 AT calimero DOT vinschen DOT de> <5435302A DOT 6030800 AT onespin-solutions DOT 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 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