This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .exe magic doesn't work with gprof


> 
> 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 needs to be patched if exe magic is desirable.  (Same goes
to the binutils strip).

--
Eric Blake



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]