From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40524 invoked by alias); 23 Nov 2015 15:09:44 -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 40507 invoked by uid 89); 23 Nov 2015 15:09:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.4 required=5.0 tests=AWL,BAYES_80,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 15:09:42 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 47C841AB6D23 for ; Mon, 23 Nov 2015 06:56:44 -0800 (PST) Date: Mon, 23 Nov 2015 15:09:00 -0000 From: Tim Chick To: cygwin@cygwin.com Message-ID: <1448291381719-122912.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=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-11/txt/msg00355.txt.bz2 > Am 08.10.2014 um 14:12 schrieb Corinna Vinschen:=20 >> On Sep 29 14:13, Dominik Stra=C3=9Fer wrote:=20 >>> Hi all,=20 > Hi Corinna, >=20 >>> I've dug into the gdb sources. The problem is in the cygwin-only=20 >>> part and is not about the PATH variable but about one single DLL=20 >>> file name.=20 >>>=20 >>> This path length is *fixed* to 512 characters=20 >>> (SO_NAME_MAX_PATH_SIZE) for the *realpath* of the DLL.=20 >>=20 >>=20 >> I'm not sure how to fix this problem yet. I'll look into it when I=20 >> had a chance to catch up with my insane mail backlog. > I only see a chance by makin this a dynamic storage.=20 > as indicated in solist.h=20 Dear All, I experienced the same problem. The error will occur if the path of the dll is too long, OR if gdb can not access the dll for some reason. If the dll can not be accesed, then the call to realpath() fails, and you get the "dll path too long" message. In my case, the path was never too long. Making the change below lets you debug your applications: --- 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 =3D strchr (so->so_name, '\0') - (sizeof ("/cygwin1.dll") - 1); Hope this helps! Tim -- View this message in context: http://cygwin.1069669.n5.nabble.com/gdb-7-8-c= onsistently-fails-to-run-executable-error-is-dll-path-too-long-tp110722p122= 912.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