delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/04/12:09:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: Debugging with cygwin tools
Date: Thu, 04 Oct 2007 10:15:24 -0500
Lines: 35
Message-ID: <fe302e$8t3$1@sea.gmane.org>
References: <4704CA0F DOT 9010907 AT udc DOT es>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <4704CA0F.9010907@udc.es>
OpenPGP: url=hkp://wwwkeys.pgp.net
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Alberto Luaces wrote:

> I am just starting to learn how to use the debugging tools available in
> Cygwin. To do so, I have a test program deliberately designed to crash:
[snip]
> I have compiled it with debugging information:
>=20
> g++ -g -O0 -o core core.cpp
>=20
> Then I try to run it with gdb:
>=20
> gdb core.exe
>=20
> (gdb) b main
> Breakpoint 1 at 0x401175: file core.cpp, line 4.
> (gdb) r
> Starting program: /home/Demostraci=F3n/testsC++/core.exe
> Error: dll starting at 0x77d41000 not found.
--^^^^^
Isn't this clear?

[snip]
> How can I finally debug my program?

You probably have a problem with your PATH, take a look at it with `echo $P=
ATH`,
it should include /usr/bin and /cygdrive/c/WINDOWS/system32 or similar if y=
ou
renamed the root, it should NOT have syntax errors... which is probably the
cause of your problem.
--=20
Ren=E9 Berber


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