Re: .exe magic doesn't work with gprof

2005-07-20 Thread Krzysztof Duleba
Christopher Faylor wrote: On Wed, Jul 20, 2005 at 04:04:54PM +0200, Krzysztof Duleba wrote: But how does gprof know that foo doesn't exist? It has to open or stat it. I thought that both open and stat calls support exe magic. Sorry. That's not how it works. The only "exe magic" in the cygwi

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Christopher Faylor
On Wed, Jul 20, 2005 at 04:04:54PM +0200, Krzysztof Duleba wrote: >But how does gprof know that foo doesn't exist? It has to open or stat it. >I thought that both open and stat calls support exe magic. Sorry. That's not how it works. The only "exe magic" in the cygwin DLL is in the stat call.

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Eric Blake
> > But how does gprof know that foo doesn't exist? It has to open or stat it. > I thought that both open and stat calls support exe magic. stat() and exec*() support exe magic, open() does not. I don't know exactly how gprof works, but it is probably doing an open() and failing, and as such ne

Re: .exe magic doesn't work with gprof

2005-07-20 Thread Krzysztof Duleba
Dave Korn wrote: .exe magic doesn't work with gprof. Any ideas why? And indeed, it doesn't work the other way round... [carrying on from your testcase:] [EMAIL PROTECTED] /artimi/firmware/test> mv foo.exe foo [EMAIL PROTECTED] /artimi/firmware/test> rm gmon.out [EMAIL PROTECTED] /artimi/fir

RE: .exe magic doesn't work with gprof

2005-07-20 Thread Dave Korn
Original Message >From: Krzysztof Duleba >Sent: 20 July 2005 07:07 > .exe magic doesn't work with gprof. Any ideas why? And indeed, it doesn't work the other way round... [carrying on from your testcase:] [EMAIL PROTECTED] /artimi/firmware/test> mv foo.exe foo [EMAIL PROTECTED] /artimi