frysk.isa.corefiles
Class IA32LinuxElfCorefile

java.lang.Object
  extended by frysk.isa.corefiles.LinuxElfCorefile
      extended by frysk.isa.corefiles.IA32LinuxElfCorefile

public class IA32LinuxElfCorefile
extends LinuxElfCorefile

LinuxElfCorefilex86. Extends LinuxCorefile. Fill in specific x86 information for corefiles.


Nested Class Summary
 
Nested classes/interfaces inherited from class frysk.isa.corefiles.LinuxElfCorefile
LinuxElfCorefile.CoreMapsBuilder
 
Field Summary
(package private)  Task[] blockedTasks
           
(package private)  Proc process
           
(package private)  int size
           
 
Fields inherited from class frysk.isa.corefiles.LinuxElfCorefile
coreName, elfSectionOffset, linuxElfCorefileImage, regex, regexMatch, writeAllMaps
 
Constructor Summary
IA32LinuxElfCorefile(Proc process, Task[] blockedTasks)
          LinuxElfCoreFile.
 
Method Summary
protected  byte getElfMachineClass()
          Return the elf class type as defined by this ISA
protected  byte getElfMachineType()
          Return the elf machine type as defined by this ISA
protected  void writeNoteFPRegset(ElfNhdr nhdrEntry, Task task)
          writeNoteFPRegSet Write a NT_PRFPREGSET entry to the note entry given, from seed information contained within the task.
protected  void writeNotePrpsinfo(ElfNhdr nhdrEntry, Proc process)
          writeNotePrpsInfo Write a NT_PRPSINFO entry to the note entry given, from seed information contained within the process.
protected  void writeNotePrstatus(ElfNhdr nhdrEntry, Task task)
          writeNotePrstatus Write a NT_PRSTATUS entry to the note entry given, from seed information contained within the task.
protected  boolean writeNotePRXFPRegset(ElfNhdr nhdrEntry, Task task)
          writeNotePRXFPRegSet Write a NT_PRFPXREG entry to the note entry given, from seed information contained within the task.
 
Methods inherited from class frysk.isa.corefiles.LinuxElfCorefile
buildNotes, constructCorefile, constructSectionData, getConstructedFileName, populateElfHeader, setName, setPatternMatch, setWriteAllMaps, writeNoteAuxVec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

process

Proc process

blockedTasks

Task[] blockedTasks

size

int size
Constructor Detail

IA32LinuxElfCorefile

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

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

writeNotePrpsinfo

protected void writeNotePrpsinfo(ElfNhdr nhdrEntry,
                                 Proc process)
Description copied from class: LinuxElfCorefile
writeNotePrpsInfo Write a NT_PRPSINFO entry to the note entry given, from seed information contained within the process.

Specified by:
writeNotePrpsinfo in class LinuxElfCorefile
Parameters:
nhdrEntry - - the note header entry this function is to populate.
process - - the frysk.proc.live.Proc that provides seed info to populate the note header.

writeNotePrstatus

protected void writeNotePrstatus(ElfNhdr nhdrEntry,
                                 Task task)
Description copied from class: LinuxElfCorefile
writeNotePrstatus Write a NT_PRSTATUS entry to the note entry given, from seed information contained within the task.

Specified by:
writeNotePrstatus in class LinuxElfCorefile
Parameters:
nhdrEntry - - the note header entry this function is to populate.
task - - the frysk.proc.live.Taskthat provides seed info to populate the note header.

writeNoteFPRegset

protected void writeNoteFPRegset(ElfNhdr nhdrEntry,
                                 Task task)
Description copied from class: LinuxElfCorefile
writeNoteFPRegSet Write a NT_PRFPREGSET entry to the note entry given, from seed information contained within the task.

Specified by:
writeNoteFPRegset in class LinuxElfCorefile
Parameters:
nhdrEntry - - the note header entry this function is to populate.
task - - the frysk.proc.live.Taskthat provides seed info to populate the note header.

writeNotePRXFPRegset

protected boolean writeNotePRXFPRegset(ElfNhdr nhdrEntry,
                                       Task task)
Description copied from class: LinuxElfCorefile
writeNotePRXFPRegSet Write a NT_PRFPXREG entry to the note entry given, from seed information contained within the task.

Specified by:
writeNotePRXFPRegset in class LinuxElfCorefile
Parameters:
nhdrEntry - - the note header entry this function is to populate.
task - - the frysk.proc.live.Taskthat provides seed info to populate the note header.
Returns:
boolean: Reutrns whether this arch supports this note.

getElfMachineType

protected byte getElfMachineType()
Description copied from class: LinuxElfCorefile
Return the elf machine type as defined by this ISA

Specified by:
getElfMachineType in class LinuxElfCorefile
Returns:
byte - machine type

getElfMachineClass

protected byte getElfMachineClass()
Description copied from class: LinuxElfCorefile
Return the elf class type as defined by this ISA

Specified by:
getElfMachineClass in class LinuxElfCorefile
Returns:
- class type