MS or cygwin dll debug tools/ was "sys/sockio.h" etc.

Brian Dessent brian@dessent.net
Wed May 28 17:05:00 GMT 2008


Greg Chicares wrote:

> Using cygwin's gdb on a MinGW app, I can set this breakpoint
>   b '__mingw_CRTStartup'
> on the function that invokes main(), and then examine variables
> before main() is invoked. For a Cygwin app, I guess you'd break
> on 'mainCRTStartup'. Does that breakpoint happen early enough to
> meet your needs?

You can also do "info target" to display the entry point and then set a
breakpoint on it as e.g. "b *0x401000" if you want to start at the very
first instruction of the binary.  There is no such "can't debug before
main" restriction.

Brian

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



More information about the Cygwin mailing list