Bug 2094 - Proc.getCmdLine()
Summary: Proc.getCmdLine()
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 1586 1593 2081 2118
  Show dependency treegraph
 
Reported: 2005-12-22 17:20 UTC by Andrew Cagney
Modified: 2006-01-06 20:15 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 2005-12-22 17:20:20 UTC
Need a method for fetching the entire /proc/$$/cmdline.
Comment 1 Andrew Cagney 2006-01-05 20:33:16 UTC
Part 1; note the IMplement stub bit.

Index: frysk-core/frysk/proc/ChangeLog
2006-01-05  Andrew Cagney  <cagney@redhat.com>

        * LinuxProc.java (sendrecCmdLine): IMplement stub.
        * Proc.java (getCmdLine()): Add.
        (sendrecCmdLine()): Add, abstract.
        (argv): Add, private.
        * TestLib.java (Child.getArgv()): Add.
        (Child.Child(int)): Delete.
        * TestProcGet.java: Add .testGetCmdLine.
Comment 2 Andrew Cagney 2006-01-05 21:34:22 UTC
More framework; this time in frysk-sys for its testing.

2006-01-05  Andrew Cagney  <cagney@redhat.com>

        * TestCmdLine.java: New file.
        * CmdLineBuilder.java: New file.
Comment 3 Andrew Cagney 2006-01-06 20:15:48 UTC
Index: frysk-core/frysk/proc/ChangeLog
2006-01-06  Andrew Cagney  <cagney@redhat.com>

        * LinuxProc.java (sendrecCmdLine): Implement using CmdLineBuilder.

Index: frysk-imports/tests/ChangeLog
2006-01-06  Andrew Cagney  <cagney@redhat.com>

        * Makefile.am (check_PROGRAMS): Add cmdline/dump, and
        cmdline/print.
        (TESTS): Add cmdline/print.
        * cmdline/dump.c: New file.
        * cmdline/print.c: New file.

Index: frysk-sys/frysk/sys/proc/ChangeLog
2006-01-06  Andrew Cagney  <cagney@redhat.com>

        * CmdLineBuilder.java (construct): Make abstract.
        * cni/CmdLineBuilder.cxx: New file.
        * TestCmdLine.java: Implement, test {}, {""}, {"a"}, {"",""},
        {"a",""}, {"","b"}, {"a","b"}, {"a","b","c"}.