gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] How to debug program that dies before main is called


From: Tron Thomas
Subject: [Gdb] How to debug program that dies before main is called
Date: Fri, 30 May 2003 18:25:08 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02

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?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]