This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cygwin 1.1.0 gdb troubles


Hi, I just installed cygwin 1.1.0. and I was looking forward to playing with
Insight, but had a problem with gdb hanging when I run even the simplest
program under it.

bash-2.03$ cat trial.c
#include <stdio.h>

int main(int argc, char **argv){
    printf("This is a test\n");
    exit(0);
}
bash-2.03$ gcc -Wall -g3 -o trial trial.c
bash-2.03$ ls -l
total 8
-rw-r--r--   1 boyd     Administ      100 Apr 18 14:23 trial.c
-rwxr-xr-x   1 boyd     Administ    13179 Apr 18 14:24 trial.exe
bash-2.03$ ./trial
This is a test
bash-2.03$ gdb -nw trial.exe
GNU gdb 20000204
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Starting program: /tmp/trial.exe
61000000:d:/cygwin/bin/cygwin1.dll
77db0000:D:/WINNT/system32/ADVAPI32.DLL
77e80000:D:/WINNT/system32/KERNEL32.DLL
77d30000:D:/WINNT/system32/RPCRT4.DLL

... and there it hangs. This happens in the gui as well.

Anyway, in the process of trying to work this out I used a find command and
got
this output (The redirection only hides the output from directories other
than
/tmp & /usr)

bash-2.03$ find / > /dev/null
find: /tmp: No such file or directory
find: /uninst.bat: No such file or directory
find: /usr: No such file or directory
bash-2.03$ ls -l /
total 66
drwxr-xr-x   2 boyd     Administ    28672 Apr 18 14:17 bin
drwxr-xr-x   3 boyd     Administ     4096 Apr 18 14:17 lib
drwxr-xr-x   2 boyd     Administ        0 Apr 18 14:17 tmp
-rwxr-xr-x   1 boyd     Administ    96927 Apr 18 14:17 uninst.bat
drwxr-xr-x  12 boyd     Administ     4096 Apr 18 14:17 usr
bash-2.03$ mount
Device              Directory           Type         Flags
d:\cygwin\bin       /usr/bin            user         binmode
d:\cygwin\lib       /usr/lib            user         binmode
d:\cygwin           /                   user         binmode

Are these issues related? Could it be that the problem find is
having with the /tmp directory is causing gdb's woes?

I'm on Win2000 with an NTFS filesystem if it makes any difference.

Thanks for any help in advance,

Boyd


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]