Bug 5577

Summary: $ fhpd -- ls -l
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246, 5572    

Description Andrew Cagney 2008-01-09 17:44:09 UTC
That is, instead of:

  $ ./frysk/bindir/fhpd -- bash -c "ls"
  Usage: fhpd <PID> || fhpd <EXEFILE> || fhpd <COREFILE> [<EXEFILE>]
  [...]
  Exception in thread "main" java.lang.RuntimeException: command not readable: bash
   at frysk.bindir.fhpd$1.parseCommand(fhpd)
   at frysk.util.CommandlineParser.doParse(fhpd)
   at frysk.util.CommandlineParser.parse(fhpd)
   at frysk.bindir.fhpd.main(fhpd)

have:

  $ fhpd -- ls -l
  Loaded executable: ls
  (fhpd) run
  total 94100
  -rw-r--r--  1 cagney cagney        0 2008-01-08 16:40 checked-for-java-util-vector
  [...]

i.e., both find "ls" for the load, and default ls's argument list to:

  argv[0]="ls" argv[1]="-l"
Comment 1 Andrew Cagney 2008-03-05 02:58:40 UTC
$ ./frysk/bindir/fhpd -- ls -l
Loaded executable file: /bin/ls
(fhpd) info args
ls
-l
Comment 2 Andrew Cagney 2008-03-18 20:59:32 UTC
This is now working:

$ ./frysk/bindir/fhpd -- ls -l
[0.0] Loaded executable file: /bin/ls
(fhpd) info args
ls
-l
(fhpd) info exe
/bin/ls
(fhpd) run
Attached to process 5955
starting/running with this command: ls -l
Running process 5955
(fhpd) total 118876
-rw-r--r--  1 cagney cagney        0 2008-03-18 15:17 checked-for-java-util-vector

Comment 3 Andrew Cagney 2008-03-18 21:00:39 UTC
see previous comment; part of frysk.proc.dead refactoring.