lib.dwfl
Class ElfPrstatus

java.lang.Object
  extended by lib.dwfl.ElfNhdr.ElfNoteSectionEntry
      extended by lib.dwfl.ElfPrstatus

public class ElfPrstatus
extends ElfNhdr.ElfNoteSectionEntry

Java Representation of the the PRSTATUS notes secion found in core files


Constructor Summary
ElfPrstatus(int size)
           
 
Method Summary
static ElfPrstatus[] decode(ElfData noteData)
           
 long fillMemRegion(byte[] buffer, long startAddress)
           
 long getEntrySize()
           
static long getNoteData(ElfData data)
           
 long getPrCStimeSec()
          Get the >pr_cstime_sec value.
 long getPrCStimeUsec()
          Get the pr_sctime_usec value.
 long getPrCurSig()
          Returns the Prstatus current signal value
 long getPrCUtimeSec()
          Get the pr_cutime_sec value.
 long getPrCUtimeUsec()
          Get the pr_cutime_usec value.
 long getPrFPValid()
           
 long getPrInfoSiCode()
           
 long getPrInfoSiErrno()
           
 long getPrInfoSiSigno()
           
 int getPrPgrp()
          Returns the Prstatus group pid value
 int getPrPid()
          Returns the Prstatus pid value
 int getPrPpid()
          Returns the Prstatus parent pid value
 int getPrSid()
          Returns the Prstatus session id value
 long getPrSigHold()
          Returns the Prstatus signal hold id value
 long getPrSigPending()
          Returns the Prstatus signal pending id value
 long getPrStimeSec()
          Get the Pr_Stime_Usec value.
 long getPrStimeUsec()
          Get the Pr_Stime_Usec value.
 long getPrUtimeSec()
          Get the Pr_Utime_Usec value.
 long getPrUtimeUsec()
          Get the Pr_Utime_Usec value.
 byte[] getRawCoreRegisters()
          Returns the raw byte[] data representing the register data.
 int getSize()
           
 ArrayList getThreadData()
           
 void printAll()
           
 void setPrCStimeSec(long newPrCStimeSec)
          Set the pr_cstime_secc value.
 void setPrCStimeUsec(long newPrCStimeUsec)
          Set the pr_cstime_usec value.
 void setPrCurSig(long sigcur)
          Sets the Prstatus current signal value
 void setPrCUtimeSec(long newPrCUtimeSec)
          Set the pr_cutime_sec value.
 void setPrCUtimeUsec(long newPrCUtimeUsec)
          Set the pr_cutime_usec value.
 void setPrFPValid(int pr_fpvalid)
           
 void setPrGPRegisterBuffer(byte[] buffer)
           
 void setPrInfoSiCode(long pr_info_si_code)
           
 void setPrInfoSiErrno(long pr_info_si_errno)
           
 void setPrInfoSiSigno(long pr_info_si_signo)
           
 void setPrPgrp(int pgrp)
          Sets the Prstatus group pid value
 void setPrPid(int pid)
          Sets the Prstatus pid value
 void setPrPpid(int ppid)
          Sets the Prstatus parent pid value
 void setPrSid(int sid)
          Sets the Prstatus session id value
 void setPrSigHold(long sighold)
          Sets the Prstatus signal hold id value
 void setPrSigPending(long sigpend)
          Sets the Prstatus signal pending id value
 void setPrStimeSec(long newPrStimeSec)
          Set the Pr_Utime_Usec value.
 void setPrStimeUsec(long newPrStimeUsec)
          Set the Pr_Stime_Usec value.
 void setPrUtimeSec(long newPrUtimeSec)
          Set the Pr_Utime_Usec value.
 void setPrUtimeUsec(long newPrUtimeUsec)
          Set the Pr_Utime_Usec value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElfPrstatus

public ElfPrstatus(int size)
Method Detail

printAll

public void printAll()

decode

public static ElfPrstatus[] decode(ElfData noteData)

getRawCoreRegisters

public byte[] getRawCoreRegisters()
Returns the raw byte[] data representing the register data.


getThreadData

public ArrayList getThreadData()

setPrPid

public void setPrPid(int pid)
Sets the Prstatus pid value

Parameters:
pr_pid -

getPrPid

public int getPrPid()
Returns the Prstatus pid value

Returns:
pr_pid

setPrPpid

public void setPrPpid(int ppid)
Sets the Prstatus parent pid value

Parameters:
pr_ppid -

getPrPpid

public int getPrPpid()
Returns the Prstatus parent pid value

Returns:
pr_ppid

setPrPgrp

public void setPrPgrp(int pgrp)
Sets the Prstatus group pid value

Parameters:
pr_pgrp -

getPrPgrp

public int getPrPgrp()
Returns the Prstatus group pid value

Returns:
pr_pgrp

setPrSid

public void setPrSid(int sid)
Sets the Prstatus session id value

Parameters:
pr_sid -

getPrSid

public int getPrSid()
Returns the Prstatus session id value

Returns:
pr_sid

setPrSigPending

public void setPrSigPending(long sigpend)
Sets the Prstatus signal pending id value

Parameters:
pr_sigpend -

getPrSigPending

public long getPrSigPending()
Returns the Prstatus signal pending id value

Returns:
pr_sigpend

setPrSigHold

public void setPrSigHold(long sighold)
Sets the Prstatus signal hold id value

Parameters:
pr_sighold -

getPrSigHold

public long getPrSigHold()
Returns the Prstatus signal hold id value

Returns:
pr_sighold

setPrCurSig

public void setPrCurSig(long sigcur)
Sets the Prstatus current signal value

Parameters:
pr_cursig -

getPrCurSig

public long getPrCurSig()
Returns the Prstatus current signal value

Returns:
pr_cursig

setPrGPRegisterBuffer

public void setPrGPRegisterBuffer(byte[] buffer)

setPrInfoSiSigno

public void setPrInfoSiSigno(long pr_info_si_signo)

getPrInfoSiSigno

public long getPrInfoSiSigno()

setPrInfoSiCode

public void setPrInfoSiCode(long pr_info_si_code)

getPrInfoSiCode

public long getPrInfoSiCode()

setPrInfoSiErrno

public void setPrInfoSiErrno(long pr_info_si_errno)

getPrInfoSiErrno

public long getPrInfoSiErrno()

setPrFPValid

public void setPrFPValid(int pr_fpvalid)

getPrFPValid

public long getPrFPValid()

getPrUtimeUsec

public final long getPrUtimeUsec()
Get the Pr_Utime_Usec value.

Returns:
a long value

setPrUtimeUsec

public final void setPrUtimeUsec(long newPrUtimeUsec)
Set the Pr_Utime_Usec value.

Parameters:
newPr_Utime_Usec - The new Pr_Utime_Usec value.

getPrUtimeSec

public final long getPrUtimeSec()
Get the Pr_Utime_Usec value.

Returns:
a long value

setPrUtimeSec

public final void setPrUtimeSec(long newPrUtimeSec)
Set the Pr_Utime_Usec value.

Parameters:
newPr_Utime_Usec - The new Pr_Utime_Usec value.

getPrCUtimeUsec

public final long getPrCUtimeUsec()
Get the pr_cutime_usec value.

Returns:
a long value

setPrCUtimeUsec

public final void setPrCUtimeUsec(long newPrCUtimeUsec)
Set the pr_cutime_usec value.

Parameters:
newPrCUtimeUsec - The new PrCUtimeUsec value.

getPrCUtimeSec

public final long getPrCUtimeSec()
Get the pr_cutime_sec value.

Returns:
a long value

setPrCUtimeSec

public final void setPrCUtimeSec(long newPrCUtimeSec)
Set the pr_cutime_sec value.

Parameters:
newPrUtimeUsec - The new Pr_Utime_Usec value.

getPrStimeUsec

public final long getPrStimeUsec()
Get the Pr_Stime_Usec value.

Returns:
a long value

setPrStimeUsec

public final void setPrStimeUsec(long newPrStimeUsec)
Set the Pr_Stime_Usec value.

Parameters:
newPrStimeUsec - The new Pr_Utime_Usec value.

getPrStimeSec

public final long getPrStimeSec()
Get the Pr_Stime_Usec value.

Returns:
a long value

setPrStimeSec

public final void setPrStimeSec(long newPrStimeSec)
Set the Pr_Utime_Usec value.

Parameters:
newPr_Utime_Usec - The new Pr_Utime_Usec value.

getPrCStimeUsec

public final long getPrCStimeUsec()
Get the pr_sctime_usec value.

Returns:
a long value

setPrCStimeUsec

public final void setPrCStimeUsec(long newPrCStimeUsec)
Set the pr_cstime_usec value.

Parameters:
newPrCStimeUsec - The new Pr_CStime_Usec value.

getPrCStimeSec

public final long getPrCStimeSec()
Get the >pr_cstime_sec value.

Returns:
a long value

setPrCStimeSec

public final void setPrCStimeSec(long newPrCStimeSec)
Set the pr_cstime_secc value.

Parameters:
newPr_CStime_sec - The new Pr_CStime_sec value.

getSize

public int getSize()

getNoteData

public static long getNoteData(ElfData data)

getEntrySize

public long getEntrySize()
Specified by:
getEntrySize in class ElfNhdr.ElfNoteSectionEntry

fillMemRegion

public long fillMemRegion(byte[] buffer,
                          long startAddress)
Specified by:
fillMemRegion in class ElfNhdr.ElfNoteSectionEntry