Bug 5682

Summary: commands share stop/continue main tid framework
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Teresa Thomas <tthomas>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on: 5808    
Bug Blocks: 3144, 3626, 4811, 5656    

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.