How to set breakpoints before mainCRTStartup?
Ralf Habacker
ralf.habacker@freenet.de
Tue Dec 23 22:17:00 GMT 2003
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
<snip>
(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
(gdb) r
Starting program: /usr/bin/bash.exe
Breakpoint 1, 0x00401000 in ?? ()
(gdb)
Ralf
--
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