frysk.isa.corefiles
Class LinuxElfCorefile

java.lang.Object
  extended by frysk.isa.corefiles.LinuxElfCorefile
Direct Known Subclasses:
IA32LinuxElfCorefile, PPC32LinuxElfCorefile, PPC64LinuxElfCorefile, X8664LinuxElfCorefile

public abstract class LinuxElfCorefile
extends Object


Constructor Summary
LinuxElfCorefile(Proc process, Task[] blockedTasks)
          LinuxElfCoreFile.
 
Method Summary
 void constructCorefile()
          Constuct a core file from a process given in the constructor.
 String getConstructedFileName()
          Return the constructed name (ie name + "." + pid of the core file.
 void setName(String name)
          Set the name of the corefile to be constructed.
 void setPatternMatch(String regex)
           
 void setWriteAllMaps(boolean maps)
          Defines whether to attempt to write all maps, and elide nothing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxElfCorefile

public LinuxElfCorefile(Proc process,
                        Task[] blockedTasks)
LinuxElfCoreFile. Construct a corefile from a given process, and that process's tasks that have been block.

Parameters:
process - - The parent process to construct the core from.
blockedTasks - - The process's tasks, in a stopped state
Method Detail

setWriteAllMaps

public void setWriteAllMaps(boolean maps)
Defines whether to attempt to write all maps, and elide nothing.

Parameters:
maps - - True if attempt to write all maps, false to follow map writing convention.

setPatternMatch

public void setPatternMatch(String regex)

setName

public void setName(String name)
Set the name of the corefile to be constructed. This should be called before constructCorefile

Parameters:
name - - Name of corefile.

constructCorefile

public void constructCorefile()
Constuct a core file from a process given in the constructor. This is the "action" command after all parameters have been set.


getConstructedFileName

public String getConstructedFileName()
Return the constructed name (ie name + "." + pid of the core file.

Returns:
- String. Name of Corefile.