Bug 6003 - ftrace does not follow $PATH
Summary: ftrace does not follow $PATH
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on: 5989
Blocks: 2245
  Show dependency treegraph
 
Reported: 2008-03-30 16:11 UTC by Tom Tromey
Modified: 2008-03-31 20:50 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2008-03-30 16:11:11 UTC
I tried testing ftrace on a simple process, but found that
ftrace does not look in $PATH:

opsy. ftrace -- ls
execvp: No such file or directory
Comment 1 Andrew Cagney 2008-03-31 20:50:53 UTC
Removed the code double-parsing (and hence defeating) an exe option.  Now using
code paths tested using fexe.

$ ./frysk/bindir/ftrace ls
7613.7613 attached /bin/ls
checked-for-java-util-vector      config.status    frysk-core.jar    log       
TestRunner

commit ef004caee59a22972827bc8ee5fb2b7a105bb7cb
Author: Andrew Cagney <cagney@redhat.com>
Date:   Mon Mar 31 16:46:53 2008 -0400

    Don't double-parse fexe <exe>.
    
    frysk-core/frysk/bindir/ChangeLog
    2008-03-31  Andrew Cagney  <cagney@redhat.com>
    
        * ftrace.java (commandAndArguments): Change type to Proc.
        (run(String[])): Don't un-parse the commandAndArguments; pass to
        Ftrace.trace(Proc).
    
    frysk-core/frysk/ftrace/ChangeLog
    2008-03-31  Andrew Cagney  <cagney@redhat.com>
    
        * Ftrace.java (trace(Proc)): Replace trace(String[]).