| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <4704CA0F DOT 9010907 AT udc DOT es> <fe302e$8t3$1 AT sea DOT gmane DOT org> |
| Subject: | RE: Debugging with cygwin tools |
| Date: | Thu, 4 Oct 2007 17:33:34 +0100 |
| Message-ID: | <016801c806a4$501cd850$2e08a8c0@CAM.ARTIMI.COM> |
| MIME-Version: | 1.0 |
| X-Mailer: | Microsoft Office Outlook 11 |
| In-Reply-To: | <fe302e$8t3$1@sea.gmane.org> |
| 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 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l94GXoAc032673 |
On 04 October 2007 16:15, René Berber wrote:
> 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:
>>
>> g++ -g -O0 -o core core.cpp
>>
>> Then I try to run it with gdb:
>>
>> gdb core.exe
>>
>> (gdb) b main
>> Breakpoint 1 at 0x401175: file core.cpp, line 4.
>> (gdb) r
>> Starting program: /home/Demostración/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
> $PATH`,
Hey, I think you don't really mean to use backtick quotes there... :)
> it should include /usr/bin and /cygdrive/c/WINDOWS/system32 or
> similar if you renamed the root, it should NOT have syntax errors... which
> is probably the cause of your problem.
Also, running "cygcheck core.exe" should show up any missing DLL straight
away.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |