Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: .exe magic doesn't work with gprof Date: Wed, 20 Jul 2005 11:28:59 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: ----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:] dk AT mace /artimi/firmware/test> mv foo.exe foo dk AT mace /artimi/firmware/test> rm gmon.out dk AT mace /artimi/firmware/test> ./foo dk AT mace /artimi/firmware/test> gprof foo.exe foo.exe: No such file or directory dk AT mace /artimi/firmware/test> gprof foo Flat profile: Exe magic is not applied to command line arguments by the shell, otherwise it might mangle plaintext or options: exe magic is applied when an application tries to open a file that doesn't exist. gprof doesn't open foo or foo.exe; it opens gmon.out. The exe magic would have to modify the contents of gmon.out in accord with gprof's internal binary format to make a difference here. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/