delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/20/10:11:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Krzysztof Duleba <krzysan AT skrzynka DOT pl>
Subject: Re: .exe magic doesn't work with gprof
Date: Wed, 20 Jul 2005 16:04:54 +0200
Lines: 27
Message-ID: <dbllm5$6gn$1@sea.gmane.org>
References: <dbkpm1$oaf$1 AT sea DOT gmane DOT org> <SERRANOf0YwXtNfsSJY00000625 AT SERRANO DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <SERRANOf0YwXtNfsSJY00000625@SERRANO.CAM.ARTIMI.COM>
X-IsSubscribed: yes

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:]
> 
> 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.  

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.

Krzysztof Duleba


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019