Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 30 May 2003 21:58:52 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Breaking into a program before the main function Message-ID: <20030531015852.GA6630@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3ED80B78 DOT 7010004 AT verizon DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ED80B78.7010004@verizon.net> User-Agent: Mutt/1.4.1i On Fri, May 30, 2003 at 06:55:04PM -0700, Tron Thomas wrote: >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? How about setting a breakpoint on _exit or exit? cgf -- 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/