Re: How to set breakpoints before mainCRTStartup?

2003-12-23 Thread Dalibor Topic
Steve Coleman wrote: Dalibor Topic wrote: Dalibor Topic wrote: Hi all, 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. snip Since I'd like to know what modifes that opcode, I

Re: How to set breakpoints before mainCRTStartup?

2003-12-23 Thread Igor Pechtchanski
On Tue, 23 Dec 2003, Dalibor Topic wrote: Steve Coleman wrote: I have seen something like this before. If it is a C++ app then it may be a constructor in a statically or golbally declared object instance. The compiler should generate code to call all the global object constructors for

Re: How to set breakpoints before mainCRTStartup?

2003-12-23 Thread Ralf Habacker
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

Re: How to set breakpoints before mainCRTStartup?

2003-12-22 Thread Steve Coleman
Dalibor Topic wrote: Dalibor Topic wrote: Hi all, 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. snip Since I'd like to know what modifes that opcode, I hope to be able to set

How to set breakpoints before mainCRTStartup?

2003-12-20 Thread Dalibor Topic
Dalibor Topic wrote: Hi all, 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. The opcode at the start of the function in question is apparently modified before the program actually