Bug 3584

Summary: frysk frysk
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: ASSIGNED ---    
Severity: enhancement CC: rmoseley
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1633, 2248    

Description Andrew Cagney 2006-11-24 15:51:13 UTC
Modify frysk's command line so that, given a parameter that is an executable
program it is started as a sub- (or daemon-?) process and passed to the debug
window.
(Note that the file might be core)

Modify frysk's `` thou shall not run frysk twice '' code so that the mechanism
can be overwritten; possibly with a disable option; possibly with a --frysk
option; possibly just by checking for the parent to see if that is also frysk ...

This makes possible something like:

frysk frysk

or:

frysk --frysk

Don't forget the man page.
Comment 1 Nurdin Premji 2007-01-12 18:02:43 UTC
Added option parser to frysk-gui/frysk/bindir/frysk
January 12, 2007
	* frysk.java : Set up some dummy option parsing.
Comment 2 Mike Cvet 2007-01-15 15:33:24 UTC
        frysk-gui/frysk/gui/srcwin:
        2007-01-15  Mike Cvet  <mcvet@redhat.com>
        
        * SourceWindow.java (SourceWindow): Added.
        (finishSourceWin): Added some code to remove any AttachedObservers.
        * SourceWindowFactory.java (AttachedObserver): Added, re: #3584.
        (startNewProc): Added, starts a new executable.
        (attachToPID): Added, attaches a new source window to a running
        process.
        
        frysk-gui/frysk/gui:
        2007-01-15  Mike Cvet  <mcvet@redhat.com>
        
        * Gui.java (gui): Added a new overloaded gui() method, used to
        directly instantiate a new SourceWindow.
        
        frysk-core/frysk/rt:
        2007-01-15  Mike Cvet  <mcvet@redhat.com>
        
        * StackFrame.java (toPrint): Re-arranged some code to prevent possible
        NullPointerExceptions.
Comment 3 Mike Cvet 2007-01-17 15:24:38 UTC
2007-01-17  Mike Cvet  <mcvet@redhat.com>

	* Gui.java (flag): Added. Determines if the monitor side of Frysk gets
	instantiated or not.
	(argString): Added. Contains path to executable for option parsing.
	(pid): Added. PID to attach to, given proper option parsing.
	(gui): Added option parsing. Will either instantiate the monitor or 
not, 
	checking after creation-agnostic code has been completed.
	(addOptions): Added. Option parsing callbacks. Commented out pending
	#3878.
	(gui): Changed from a clone of the original gui() call to simply
	completing GUI creation minus the Monitor.