delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/20/20:16:34

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:subject:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=KOu
wwtFn66CzcdJJWkJHpH3mn/vls3F5FFhcYpxG0KOuTsk8BRIK9JQJGaRKPJUf9VW
astgmphiDdUurlA6YiED5i9hPqpHQCXL2EDCvqy/ZrDuEcsxj27zFy0abwfFaWrV
zrwHI6Rjn2ti0uISB68DcV+CxHy7JvveYzlRH8gE=
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:subject:mime-version
:content-type:content-transfer-encoding; s=default; bh=Yk06amYQc
kLinUawcj3Xux16zFE=; b=CfZCnL3ifrdXGEYXvzl9cT88KwWh8znnuYCp363Ek
gn2RTRG21Q5LC03CrLBLAz9EDII8bdIw5B9HQ3KBEbTjETO7gLaPF1ovOQfVCkzD
Kb2Ic+OnUkTwhCOrNdbkqqKGpMWkkAbKq9km9fQVm5Ar0f5LNnHvCn9pHx4+ohi8
94=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_SOFTFAIL,URI_HEX autolearn=no version=3.3.2
X-HELO: sam.nabble.com
Date: Wed, 20 Aug 2014 17:16:11 -0700 (PDT)
From: DGStevens <deansx AT gmail DOT com>
To: cygwin AT cygwin DOT com
Message-ID: <1408580171694-110722.post@n5.nabble.com>
Subject: gdb 7.8 consistently fails to run executable - error is "dll path too long"
MIME-Version: 1.0

I'm unable to use gdb on any c/c++ executables.  When I try, gdb issues the
message "dll path too long" and fails to start the target executable.

I know that I must be doing something stupid, but it's escaping me.  The
only forum discussion that I could find suggested using mintty, which I am. 
I did see mention of a known bug in gdb, but no suggested workarounds, other
than running in mintty.

The following test case is the simplest that I could manage.  I see the same
failure with both 'C' and C++ files (gcc and g++, respectively).

I'm running Win7, with the old 32-bit cygwin.  cygcheck.txt should be
attached.

$> cat gdbtst.c
#include <stdio.h>

int main(int argc, char *argv[]) {
  printf("Hello World!\n");
}

$> gcc --version
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$> gcc -g gdbtst.c -o gdbtst.exe
$> gdbtst.exe
Hello World!
$> gdb gdbtst.exe
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gdbtst.exe...done.
(gdb) break main
Breakpoint 1 at 0x4011be: file gdbtst.c, line 4.
(gdb) step
The program is not being run.
(gdb) run
Starting program: /home/Deans/SBX/Samples/gdbtst.exe
[New Thread 34472.0x8ad8]
dll path too long
(gdb) step
Cannot execute this command while the selected thread is running.
(gdb) quit
A debugging session is active.

        Inferior 1 [process 34472] will be killed.

Quit anyway? (y or n) y
$> cygcheck -s -v -r >cygcheck.txt

cygcheck.txt <http://cygwin.1069669.n5.nabble.com/file/n110722/cygcheck.txt>  



--
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-tp110722.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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019