This is the mail archive of the
mailing list for the Cygwin project.
Re: How to set breakpoints before mainCRTStartup?
On Tuesday 23 December 2003 18:23, Dalibor Topic wrote:
> >>> in my attempts to fix an ugly bug in kaffe on Cygwin, the bug I'm
> >>> trying to squish turned out to be triggered by something that happens
> >>> *before* main is called.
you can set a breakpoint at the application entry point.
$ gdb /bin/bash
(gdb) info file
Symbols from "/usr/bin/bash.exe".
Local exec file:
`/usr/bin/bash.exe', file type pei-i386.
Entry point: 0x401000
0x00401000 - 0x0047b754 is .text
0x0047c000 - 0x00480d90 is .data
0x00481000 - 0x00488f60 is .bss
0x00489000 - 0x0048a12c is .idata
(gdb) b *0x401000
Breakpoint 1 at 0x401000
Starting program: /usr/bin/bash.exe
Breakpoint 1, 0x00401000 in ?? ()
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html