delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/08/09:44:42

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Raymond Miller" <Neacen AT gmail DOT com>
Subject: Re: GDB problem (under cygwin)
Date: Thu, 8 Mar 2007 15:43:22 +0100
Lines: 81
Message-ID: <esp7en$qqu$1@sea.gmane.org>
References: <ee84e5f30703061114q58aa0675jd4d4a69c759442a5 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0703061451230 DOT 6189 AT access1 DOT cims DOT nyu DOT edu> <esnbau$5m8$1 AT sea DOT gmane DOT org> <45EF3A38 DOT 8030205 AT cygwin DOT com>
X-IsSubscribed: yes
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

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 AT cygwin DOT com> escribió en el 
mensaje news:45EF3A38 DOT 8030205 AT cygwin DOT 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/

- Raw text -


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