delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/05/23:39:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: "Dylan Cuthbert" <dylan AT q-games DOT com>
Newsgroups: gmane.os.cygwin
Subject: gcc 3.1 + gdb + cygwin = segmentation fault
Date: Sat, 6 Jul 2002 12:40:16 +0900
Lines: 38
Message-ID: <ag5omh$20c$1@main.gmane.org>
NNTP-Posting-Host: pppa201.kyoto-ip.dti.ne.jp
Mime-Version: 1.0
X-Trace: main.gmane.org 1025926675 2060 210.159.246.201 (6 Jul 2002 03:37:55 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Sat, 6 Jul 2002 03:37:55 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Hi there,

For the past month or so I've been posting and browsing the gcc and gdb
newsgroups for other people with a similar problem or solutions to this
problem.  But to no avail, so my final attempt at getting a debugger to work
is directed here to the cygwin group.

Using Cygwin 1.3.9 or 1.3.10 with a hand-rolled version of the release gcc
3.1 and gdb 5.2, I get a segmentation fault (from gdb, not the program
itself) when stepping through any functions that access the cygwin
environment, (stdio for example).

ie. debugging the following program:

int main( int argc, char* argv[] )
{
    std::cout << "Hello World" << std::endl;
    return 0;
}

The debugger will seg-fault when stepping over (or into) the io line.  The
same problem occurs if changed to a printf.

Were any cygwin-specific changes required to gdb 5.1 for it to work with the
2.95 compiler?

Are the cygwin "steerers" thinking about incorporating gcc 3.0 or 3.1 into
their environment yet?  The C++ support is 2.95 is rather dated now and
lacking many features necessary for modern C++ program/design.
(meta-template programming etc).  The more people we get using 3.0/3.1 etc,
the faster these kinds of problems will begin to be solved.

Regards

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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