Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Dalibor Topic
Hi all, I'm trying to get kaffe to work again on Cygwin, and I'm quite puzzled at a bug I'm seing. Here's what happens: I fire up a statically linked kaffe-bin.exe in gdb, and disassemble a function, findJarFiles in gdb, and result looks reasonable, i.e. it looks just like in the disassembly

Re: Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Christopher Faylor
On Wed, Dec 17, 2003 at 07:51:06PM +0100, Dalibor Topic wrote: I try runing kaffe in gdb in order to run the java compiler, and quite quickly, it crashes, when it enters the findJarFiles function, with a SIGSEGV. The disassembly of the function shows that it's been modified to have a few bad

Re: Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Dalibor Topic
Hi Christopher, Christopher Faylor wrote: On Wed, Dec 17, 2003 at 07:51:06PM +0100, Dalibor Topic wrote: I try runing kaffe in gdb in order to run the java compiler, and quite quickly, it crashes, when it enters the findJarFiles function, with a SIGSEGV. The disassembly of the function shows

Re: Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Christopher Faylor
On Wed, Dec 17, 2003 at 10:57:40PM +0100, Dalibor Topic wrote: Hi Christopher, Christopher Faylor wrote: On Wed, Dec 17, 2003 at 07:51:06PM +0100, Dalibor Topic wrote: I try runing kaffe in gdb in order to run the java compiler, and quite quickly, it crashes, when it enters the findJarFiles

Re: Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Dalibor Topic
Hi Christopher, Christopher Faylor wrote: On Wed, Dec 17, 2003 at 10:57:40PM +0100, Dalibor Topic wrote: Hi Christopher, Christopher Faylor wrote: On Wed, Dec 17, 2003 at 07:51:06PM +0100, Dalibor Topic wrote: I try runing kaffe in gdb in order to run the java compiler, and quite quickly,

Re: Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Christopher Faylor
On Wed, Dec 17, 2003 at 11:40:39PM +0100, Dalibor Topic wrote: I was thinking about defining a gdb command along the lines of define my-stepi-watch while (*(long *) findJarFiles == original_value) stepi end though I've never done that before, so I'm not sure if that would work ;) It might work

Re: Need tips debugging a crash porting an app to cygwin caused by sth overwriting a function

2003-12-17 Thread Dalibor Topic
Hi Christopher, Christopher Faylor wrote: On Wed, Dec 17, 2003 at 11:40:39PM +0100, Dalibor Topic wrote: I was thinking about defining a gdb command along the lines of define my-stepi-watch while (*(long *) findJarFiles == original_value) stepi end though I've never done that before, so I'm not