GDB problem (under cygwin)

Raymond Miller Neacen@gmail.com
Thu Mar 8 14:44:00 GMT 2007


Finally I found what is the problem. The problem wasn't the Eclipse IDE 
because I couldn't debug either with the gdb.exe ( in command-line) and in 
addition I installed Cygwin and Eclipse IDE in the desktop PC (AMD 64 3400+ 
with Windows XP Home and Ubuntu) and I could compile and debug without any 
problem.
Nevertheless I couldn't debug in this laptop (Intel Core 2 Duo T5600 with 
Windows XP Media Center). But when I tryed mingw I saw that there weren't 
problems debugging.
So I tryed to compile with the mingw's gcc and debug with the cygwin's gdb 
and indeed I didn't get the "Segmentation fault" message (all this from the 
command-line).
Then the problem is the gcc version of cygwin that must have a compatibility 
problem with the software (I don't think so, because I had formatted the 
hard disk and just installed cygwin) or hardware in this pc (laptop).

I put here the gcc versions (cygwin and mingw):

C:\Documents and Settings\Rafa>C:\cygwin\bin\gcc.exe -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: 
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver
bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libe
xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext 
 --
enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptio
ns --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

C:\Documents and Settings\Rafa>C:\mingw\bin\gcc.exe -v
Reading specs from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: 
../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as -
-host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls 
 --
enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shar
ed --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --ena
ble-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-sync
hronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)


Is it a bug in that version?



"Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com> escribió en el 
mensaje news:45EF3A38.8030205@cygwin.com...
> Raymond Miller wrote:
>> Can someone say me what am I doing wrong?
>> With mingw I can debug without problem (doing the make with 
>> mingw32-make). Then what's the problem?.
>
> Not with the information provided at least.  See:
>
>> Problem reports:       http://cygwin.com/problems.html
>
> I'm not sure allot of people here are using Cygwin's gdb with Eclipse.
> Assuming you don't have a Cygwin version of Eclipse, there could be
> problems here.
>
>
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
>
> _____________________________________________________________________
>
> A: Yes.
> > Q: Are you sure?
> >> A: Because it reverses the logical flow of conversation.
> >>> Q: Why is top posting annoying in email?
> 




--
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/



More information about the Cygwin mailing list