Bug 5682 - commands share stop/continue main tid framework
Summary: commands share stop/continue main tid framework
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Teresa Thomas
URL:
Keywords:
Depends on: 5808
Blocks: 3144 3626 4811 5656
  Show dependency treegraph
 
Reported: 2008-01-28 02:19 UTC by Andrew Cagney
Modified: 2008-02-29 20:12 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-28 02:19:25 UTC
The commands fmaps, fauxv, fexe, and fdebuginfo all have a basic common behavior
in that:

- the work on core files, executables, and live processes
- require the main thread to be "stopped" to perform their operation

they should share a common infrastructure for implementing this
Comment 1 Teresa Thomas 2008-02-06 21:04:43 UTC
    Framework for frysk utilities that requires tasks to be stopped.
    
    frysk-core/frysk/util/ChangeLog
    2008-02-06  Teresa Thomas  <tthomas@redhat.com>
    
    	* ProcStopUtil.java: New.
    
    frysk-core/frysk/event/ChangeLog
    2008-02-06  Teresa Thomas  <tthomas@redhat.com>
    
    	* ProcEvent.java: New.
Comment 2 Teresa Thomas 2008-02-06 21:06:59 UTC
Known bugs:

ProcStopUtil does not handle multiple pids.

Currently, program calls System.exit() after executing event for one pid. How
can we pass control from ProcBlockAction's execute back to parser, so other
procs can be handled?
Comment 3 Teresa Thomas 2008-02-29 20:12:42 UTC
ProcStopUtil added.
fmaps, fauxv, fexe, and fdebuginfo use ProcStopUtil.
----------------------------------------------------
Commits:

    frysk-core/frysk/bindir/ChangeLog
    2008-02-07  Teresa Thomas  <tthomas@redhat.com>
    
    	* fmaps.java: Refactor to use ProcStopUtil.

    frysk-core/frysk/bindir/ChangeLog
    2008-02-06  Teresa Thomas  <tthomas@redhat.com>
    
    	* fdebuginfo.java (main): Use ProcStopUtil.
    	* TestFdebuginfo.java (testNoArguments): Update.

    frysk-core/frysk/bindir/ChangeLog
    2008-02-08  Teresa Thomas  <tthomas@redhat.com>
    
    	* fauxv.java: Refactor to use ProcStopUtil.

    frysk-core/frysk/bindir/ChangeLog:
    2008-02-20  Teresa Thomas  <tthomas@redhat.com>
    
    	* fexe.java: Refactor to use ProcStopUtil.