Bug 6003

Summary: ftrace does not follow $PATH
Product: frysk Reporter: Tom Tromey <tromey>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on: 5989    
Bug Blocks: 2245    

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[]).