Re: Debugging with cygwin tools

2007-10-05 Thread Doug Coleman

I'm having the exact same problem on win64 with gdb.  The PATH variable has
been set manually to avoid possible syntax errors, but the same problem
exists when I don't shorten the PATH.  Cygcheck doesn't list any dlls as
missing.  gdb works on my win32 computer.

Any other ideas?

Doug

$ uname -a
CYGWIN_NT-5.2-WOW64 c4 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin

[EMAIL PROTECTED] /cygdrive/k/factor
$ export PATH=/cygdrive/k/windows/system32:/usr/bin

[EMAIL PROTECTED] /cygdrive/k/factor
$ cygcheck.exe gdb.exe
Found: K:\cygwin\bin\gdb.exe
K:/cygwin/bin/gdb.exe
  K:\cygwin\bin\cygwin1.dll
K:\WINDOWS\system32\ADVAPI32.DLL
  K:\WINDOWS\system32\ntdll.dll
  K:\WINDOWS\system32\KERNEL32.dll
  K:\WINDOWS\system32\RPCRT4.dll
K:\WINDOWS\system32\Secur32.dll
  K:\cygwin\bin\cygiconv-2.dll
  K:\cygwin\bin\cygintl-3.dll
  K:\cygwin\bin\cygncurses-8.dll
  K:\WINDOWS\system32\COMDLG32.DLL
K:\WINDOWS\system32\msvcrt.dll
K:\WINDOWS\system32\SHLWAPI.dll
  K:\WINDOWS\system32\GDI32.dll
K:\WINDOWS\system32\USER32.dll
K:\WINDOWS\system32\COMCTL32.dll
K:\WINDOWS\system32\SHELL32.dll
  K:\cygwin\bin\tcl84.dll
  K:\cygwin\bin\tk84.dll
K:\WINDOWS\system32\IMM32.DLL

[EMAIL PROTECTED] /cygdrive/k/factor
$ cygcheck.exe ./factor-nt.exe
.\factor-nt.exe
  K:\WINDOWS\system32\msvcrt.dll
K:\WINDOWS\system32\KERNEL32.dll
  K:\WINDOWS\system32\ntdll.dll
  K:\WINDOWS\system32\SHELL32.DLL
K:\WINDOWS\system32\GDI32.dll
  K:\WINDOWS\system32\USER32.dll
  K:\WINDOWS\system32\ADVAPI32.dll
K:\WINDOWS\system32\RPCRT4.dll
  K:\WINDOWS\system32\Secur32.dll
K:\WINDOWS\system32\SHLWAPI.dll
  .\factor-nt.dll

[EMAIL PROTECTED] /cygdrive/k/factor
$ gdb ./factor-nt
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 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: /cygdrive/k/factor/factor-nt.exe
Error: dll starting at 0x77d41000 not found.
Segmentation fault (core dumped)

[EMAIL PROTECTED] /cygdrive/k/factor
$
-- 
View this message in context: 
http://www.nabble.com/Debugging-with-cygwin-tools-tf4568124.html#a13064545
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Debugging with cygwin tools

2007-10-05 Thread Doug Coleman



René Berber-2 wrote:
 
 Doug Coleman wrote:
 
 I'm having the exact same problem on win64 with gdb.  The PATH variable
 has
 been set manually to avoid possible syntax errors, but the same problem
 exists when I don't shorten the PATH.  Cygcheck doesn't list any dlls as
 missing.  gdb works on my win32 computer.
 
 Any other ideas?
 [snip]
 Error: dll starting at 0x77d41000 not found.
 Segmentation fault (core dumped)
 
 Same exact location.  Can you run 'info files' before 'run'?  What dll is
 in
 that address?
 -- 
 René Berber
 

Here is 'info files' in gdb.  There have been other posts about the same
problem, but no resolution afaik:
http://cygwin.com/ml/cygwin/2007-03/msg00182.html


$ gdb ./factor-nt
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 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) info files
Symbols from /cygdrive/k/factor/factor-nt.exe.
Local exec file:
`/cygdrive/k/factor/factor-nt.exe', file type pei-i386.
Entry point: 0x401280
0x00401000 - 0x004017b8 is .text
0x00402000 - 0x00402030 is .data
0x00403000 - 0x00403040 is .rdata
0x00404000 - 0x00404380 is .bss
0x00405000 - 0x0040509b is .edata
0x00406000 - 0x0040631c is .idata
0x00407000 - 0x0041dd04 is .rsrc
0x0041e000 - 0x0041e094 is .reloc
(gdb) run
Starting program: /cygdrive/k/factor/factor-nt.exe
Error: dll starting at 0x77d41000 not found.
Segmentation fault (core dumped)

[EMAIL PROTECTED] /cygdrive/k/factor
$

-- 
View this message in context: 
http://www.nabble.com/Debugging-with-cygwin-tools-tf4568124.html#a13065449
Sent from the Cygwin Users mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Debugging with cygwin tools

2007-10-05 Thread Doug Coleman


René Berber-2 wrote:
 
 Doug Coleman wrote:
 
 I'm having the exact same problem on win64 with gdb.  The PATH variable
 has
 been set manually to avoid possible syntax errors, but the same problem
 exists when I don't shorten the PATH.  Cygcheck doesn't list any dlls as
 missing.  gdb works on my win32 computer.
 
 Any other ideas?
 [snip]
 Error: dll starting at 0x77d41000 not found.
 Segmentation fault (core dumped)
 
 Same exact location.  Can you run 'info files' before 'run'?  What dll is
 in
 that address?
 -- 
 René Berber
 

So I attached to the running process and that works!  Here is an info files
from that.

I also tried adding /cygdrive/k/WINDOWS/syswow64 to PATH -- it still errors
at 0x77d41000.

Doug



$ gdb ./factor-nt 4496
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 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...
Attaching to program `/cygdrive/k/factor/factor-nt.exe', process 4496
Loaded symbols for /cygdrive/k/WINDOWS/system32/ntdll.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/advapi32.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/secur32.dll
Loaded symbols for /usr/bin/cygintl-8.dll
Loaded symbols for /usr/bin/cygiconv-2.dll
Loaded symbols for /usr/bin/cygreadline6.dll
Loaded symbols for /usr/bin/cygncurses-8.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/user32.dll
Loaded symbols for /cygdrive/k/WINDOWS/syswow64/gdi32.dll
Loaded symbols for /cygdrive/k/WINDOWS/system32/imm32.dll

[Switching to thread 4496.0xccc]
(gdb) info files
Symbols from /cygdrive/k/factor/factor-nt.exe.
Win32 child process:
Using the running image of attached thread 4496.0xccc.
While running this, GDB does not access memory from...
Local exec file:
`/cygdrive/k/factor/factor-nt.exe', file type pei-i386.
Entry point: 0x401280
0x00401000 - 0x004017b8 is .text
0x00402000 - 0x00402030 is .data
0x00403000 - 0x00403040 is .rdata
0x00404000 - 0x00404380 is .bss
0x00405000 - 0x0040509b is .edata
0x00406000 - 0x0040631c is .idata
0x00407000 - 0x0041dd04 is .rsrc
0x0041e000 - 0x0041e094 is .reloc
0x7d61 - 0x7d695e57 is .text in
/cygdrive/k/WINDOWS/system32/ntdll.dll
0x7d6a - 0x7d6a3600 is .data in
/cygdrive/k/WINDOWS/system32/ntdll.dll
0x7d6b - 0x7d6de250 is .rsrc in
/cygdrive/k/WINDOWS/system32/ntdll.dll
0x7d6e - 0x7d6e32ac is .reloc in
/cygdrive/k/WINDOWS/system32/ntdll.dll
0x7d4d - 0x7d55305e is .text in
/cygdrive/k/WINDOWS/syswow64/kernel32.dll
0x7d56 - 0x7d562600 is .data in
/cygdrive/k/WINDOWS/syswow64/kernel32.dll
0x7d57 - 0x7d5da6c8 is .rsrc in
/cygdrive/k/WINDOWS/syswow64/kernel32.dll
0x7d5e - 0x7d5e6294 is .reloc in
/cygdrive/k/WINDOWS/syswow64/kernel32.dll
0x61001000 - 0x610fcaf4 is .text in /usr/bin/cygwin1.dll
0x610fd000 - 0x610ff710 is .autoload_text in /usr/bin/cygwin1.dll
0x6110 - 0x6110af70 is .data in /usr/bin/cygwin1.dll
0x6110b000 - 0x6113e520 is .rdata in /usr/bin/cygwin1.dll
0x6113f000 - 0x611483d0 is .bss in /usr/bin/cygwin1.dll
0x61149000 - 0x61150c9b is .edata in /usr/bin/cygwin1.dll
0x61151000 - 0x61151448 is .rsrc in /usr/bin/cygwin1.dll
0x61152000 - 0x6116210c is .reloc in /usr/bin/cygwin1.dll
0x61163000 - 0x61163104 is .cygwin_dll_common in
/usr/bin/cygwin1.dll
0x61165000 - 0x6117 is .idata in /usr/bin/cygwin1.dll
0x6117 - 0x6120 is .cygheap in /usr/bin/cygwin1.dll
0x77f51000 - 0x77fbff79 is .text in
/cygdrive/k/WINDOWS/syswow64/advapi32.dll
0x77fc - 0x77fc2600 is .data in
/cygdrive/k/WINDOWS/syswow64/advapi32.dll
0x77fc4000 - 0x77fe50c8 is .rsrc in
/cygdrive/k/WINDOWS/syswow64/advapi32.dll
0x77fe6000 - 0x77fea2e8 is .reloc in
/cygdrive/k/WINDOWS/syswow64/advapi32.dll
0x7da3 - 0x7dabce60 is .text in
/cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
0x7dac - 0x7dac69a6 is .orpc in
/cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
0x7dad - 0x7dad0800 is .data in
/cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
0x7dae - 0x7dae0408 is .rsrc in
/cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
0x7daf - 0x7daf4d8c is .reloc in
/cygdrive/k/WINDOWS/syswow64/rpcrt4.dll
0x7d8e - 0x7d8ee699 is .text in
/cygdrive/k/WINDOWS/syswow64/secur32.dll
0x7d8f - 0x7d8f0600 is .data in
/cygdrive/k/WINDOWS/syswow64/secur32.dll
0x7d90 - 0x7d900418