This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
ongoing frysk.proc.ptrace refactoring
- From: Andrew Cagney <cagney at redhat dot com>
- To: frysk <frysk at sources dot redhat dot com>
- Date: Tue, 22 May 2007 10:28:43 -0400
- Subject: ongoing frysk.proc.ptrace refactoring
Just a work-in-progress update:
While I've finished restructuring the target specific frysk.proc code
into separate frysk.proc.corefile, frysk.proc.dummy and
frysk.proc.ptrace packages there's still a ways to go as the refactoring
has helped clarify several additional problems with the current code:
-> frysk.proc.Proc and frysk.proc.Task seem to have gained a number of
fields, such as Task.sig_send, that are very Linux/ptrace centric;
the'll need to be cleaned up
-> many of the methods, such as frysk.proc.Task.sendContinue, being
ptrace specific (they do not apply to a corefile proc), can be moved to
more specific packages
-> rather than split along the lines of "corefile" and "ptrace", a
better split might be "dead" (you can query a dead proc) and "live" (or
stateful) (you can observe a live proc), re-consider that once the more
pressing issues are addressed
I'll be continuing with this.
Andrew