X-Recipient: archive-cygwin@delorie.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=OHbaHNYGYicu0BsxFcl+nX+vsUWFLhY2IEtIxvEuPZDx45
	u4SrNRG1eJN5+TlxtI5TRa8caK63UnijxEGN0vrChLZVUTCB/n8RlHJcNCkUD2au
	EZWaai9bP21VFjlPjMmkHNUn1uhQ5PrfJjg/gDlJ+5YjtTUYlczF6eDREB33Y=
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=dnlgkSXKcSdY0voKLQbhUonl+6c=; b=fUYSArnM8hNm0mNgLVwM
	xwEhFbmmatoJiBLN6G95fBu1k1mWDR2lVG51sl/wO3a0SOppc1TrZqnVL9AUqHb2
	Ty5MD7Mr6nGxNteXE7t4VC1S66q0pTeW8PDMHCks6ZfV7c2JCXGX7tVGuecqUrWM
	rshGYPK0sWFBf79+gvko2MI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
Date: Mon, 23 Nov 2015 08:09:41 -0700 (MST)
From: Tim Chick <chick@computergeek.freeserve.co.uk>
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> <loom.20140821T100019-590@post.gmane.org> <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: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tANF9x8I027054

> Am 08.10.2014 um 14:12 schrieb Corinna Vinschen: 
>> On Sep 29 14:13, Dominik Straßer wrote: 
>>> Hi all, 
> Hi Corinna,
> 
>>> I've dug into the gdb sources. The problem is in the cygwin-only 
>>> part and is not about the PATH variable but about one single DLL 
>>> file name. 
>>> 
>>> This path length is *fixed* to 512 characters 
>>> (SO_NAME_MAX_PATH_SIZE) for the *realpath* of the DLL. 
>> 
<SNIP>
>> 
>> I'm not sure how to fix this problem yet.  I'll look into it when I 
>> had a chance to catch up with my insane mail backlog.
> I only see a chance by makin this a dynamic storage. 
> as indicated in solist.h 

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 = 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-consistently-fails-to-run-executable-error-is-dll-path-too-long-tp110722p122912.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


