delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/30/21:55:14

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
Message-ID: <3ED80B78.7010004@verizon.net>
Date: Fri, 30 May 2003 18:55:04 -0700
From: Tron Thomas <tron DOT thomas AT verizon DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Breaking into a program before the main function
X-Authentication-Info: Submitted using SMTP AUTH at pop018.verizon.net from [4.65.6.137] at Fri, 30 May 2003 20:54:59 -0500

I am writing a Win32 application using the Cygwin development tools.  I 
have a problem in that the program dies immediately when I try to run 
it.  I've tried debugging the program using GDB.  I set a breakpoint at 
the beginning of the main function (WinMain).  The program exits with a 
return code of 0x1 before it even hits the breakpoint.  I have no idea 
where to set a breakpoint so I can figure out what is going on.

Is there any way I can cause GDB to break into the program immediately 
when it start or right before it exits?



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