Bug 5577 - $ fhpd -- ls -l
Summary: $ fhpd -- ls -l
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:
Blocks: 2246 5572
  Show dependency treegraph
 
Reported: 2008-01-09 17:44 UTC by Andrew Cagney
Modified: 2008-03-18 21:00 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 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.