Bug 2094

Summary: Proc.getCmdLine()
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1586, 1593, 2081, 2118    

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"}.