Package org.eclipse.cdt.utils.macho
Class MachO.Symbol
- java.lang.Object
-
- org.eclipse.cdt.utils.macho.MachO.Symbol
-
- All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>
- Enclosing class:
- MachO
public class MachO.Symbol extends java.lang.Object implements java.lang.Comparable<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_SECTstatic intN_ABSstatic intN_BCOMMstatic intN_BINCLstatic intN_BNSYMshortn_descstatic intN_DESC_DISCARDEDstatic intN_ECOMLstatic intN_ECOMMstatic intN_EINCLstatic intN_ENSYMstatic intN_ENTRYstatic intN_EXCLstatic intN_EXTstatic intN_FNAMEstatic intN_FUNstatic intN_GSYMstatic intN_INDRstatic intN_LBRACstatic intN_LCSYMstatic intN_LENGstatic intN_LSYMstatic intN_OLEVELstatic intN_OPTstatic intN_PARAMSstatic intN_PBUDstatic intN_PEXTstatic intN_PSYMstatic intN_RBRACstatic intN_RSYMbyten_sectstatic intN_SECTstatic intN_SLINEstatic intN_SOstatic intN_SOLstatic intN_SSYMstatic intN_STABlongn_strxstatic intN_STSYMbyten_typestatic intN_TYPEstatic intN_UNDFlongn_valuestatic intN_VERSIONstatic intN_WEAK_DEFstatic intN_WEAK_REFstatic intNO_SECTstatic intREFERENCE_FLAG_DEFINEDstatic intREFERENCE_FLAG_PRIVATE_DEFINEDstatic intREFERENCE_FLAG_PRIVATE_UNDEFINED_LAZYstatic intREFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZYstatic intREFERENCE_FLAG_UNDEFINED_LAZYstatic intREFERENCE_FLAG_UNDEFINED_NON_LAZYstatic intREFERENCE_TYPEstatic intREFERENCED_DYNAMICALLY
-
Constructor Summary
Constructors Constructor Description Symbol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object obj)java.lang.StringgetFilename()If the filename is available from the symbol information, this will return the base filename information.intgetFuncLineNumber()Returns the line number of the function which is closest associated with the address if it is available.java.lang.StringgetFunction()If the function is available from the symbol information, this will return the function name.intgetLineNumber(long vma)Returns the line number of the file if it is available from the symbol information.java.lang.StringlineInfo()Returns line information in the form of filename:line and if the information is not available may return null _or_ may return ??:??java.lang.StringlineInfo(long vma)booleann_desc(int val)booleann_type(int val)booleann_type_mask(int mask)java.lang.StringtoString()
-
-
-
Field Detail
-
N_STAB
public static final int N_STAB
- See Also:
- Constant Field Values
-
N_PEXT
public static final int N_PEXT
- See Also:
- Constant Field Values
-
N_EXT
public static final int N_EXT
- See Also:
- Constant Field Values
-
N_TYPE
public static final int N_TYPE
- See Also:
- Constant Field Values
-
N_UNDF
public static final int N_UNDF
- See Also:
- Constant Field Values
-
N_ABS
public static final int N_ABS
- See Also:
- Constant Field Values
-
N_SECT
public static final int N_SECT
- See Also:
- Constant Field Values
-
N_PBUD
public static final int N_PBUD
- See Also:
- Constant Field Values
-
N_INDR
public static final int N_INDR
- See Also:
- Constant Field Values
-
N_GSYM
public static final int N_GSYM
- See Also:
- Constant Field Values
-
N_FNAME
public static final int N_FNAME
- See Also:
- Constant Field Values
-
N_FUN
public static final int N_FUN
- See Also:
- Constant Field Values
-
N_STSYM
public static final int N_STSYM
- See Also:
- Constant Field Values
-
N_LCSYM
public static final int N_LCSYM
- See Also:
- Constant Field Values
-
N_BNSYM
public static final int N_BNSYM
- See Also:
- Constant Field Values
-
N_OPT
public static final int N_OPT
- See Also:
- Constant Field Values
-
N_RSYM
public static final int N_RSYM
- See Also:
- Constant Field Values
-
N_SLINE
public static final int N_SLINE
- See Also:
- Constant Field Values
-
N_ENSYM
public static final int N_ENSYM
- See Also:
- Constant Field Values
-
N_SSYM
public static final int N_SSYM
- See Also:
- Constant Field Values
-
N_SO
public static final int N_SO
- See Also:
- Constant Field Values
-
N_LSYM
public static final int N_LSYM
- See Also:
- Constant Field Values
-
N_BINCL
public static final int N_BINCL
- See Also:
- Constant Field Values
-
N_SOL
public static final int N_SOL
- See Also:
- Constant Field Values
-
N_PARAMS
public static final int N_PARAMS
- See Also:
- Constant Field Values
-
N_VERSION
public static final int N_VERSION
- See Also:
- Constant Field Values
-
N_OLEVEL
public static final int N_OLEVEL
- See Also:
- Constant Field Values
-
N_PSYM
public static final int N_PSYM
- See Also:
- Constant Field Values
-
N_EINCL
public static final int N_EINCL
- See Also:
- Constant Field Values
-
N_ENTRY
public static final int N_ENTRY
- See Also:
- Constant Field Values
-
N_LBRAC
public static final int N_LBRAC
- See Also:
- Constant Field Values
-
N_EXCL
public static final int N_EXCL
- See Also:
- Constant Field Values
-
N_RBRAC
public static final int N_RBRAC
- See Also:
- Constant Field Values
-
N_BCOMM
public static final int N_BCOMM
- See Also:
- Constant Field Values
-
N_ECOMM
public static final int N_ECOMM
- See Also:
- Constant Field Values
-
N_ECOML
public static final int N_ECOML
- See Also:
- Constant Field Values
-
N_LENG
public static final int N_LENG
- See Also:
- Constant Field Values
-
NO_SECT
public static final int NO_SECT
- See Also:
- Constant Field Values
-
MAX_SECT
public static final int MAX_SECT
- See Also:
- Constant Field Values
-
REFERENCE_TYPE
public static final int REFERENCE_TYPE
- See Also:
- Constant Field Values
-
REFERENCE_FLAG_UNDEFINED_NON_LAZY
public static final int REFERENCE_FLAG_UNDEFINED_NON_LAZY
- See Also:
- Constant Field Values
-
REFERENCE_FLAG_UNDEFINED_LAZY
public static final int REFERENCE_FLAG_UNDEFINED_LAZY
- See Also:
- Constant Field Values
-
REFERENCE_FLAG_DEFINED
public static final int REFERENCE_FLAG_DEFINED
- See Also:
- Constant Field Values
-
REFERENCE_FLAG_PRIVATE_DEFINED
public static final int REFERENCE_FLAG_PRIVATE_DEFINED
- See Also:
- Constant Field Values
-
REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY
public static final int REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY
- See Also:
- Constant Field Values
-
REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY
public static final int REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY
- See Also:
- Constant Field Values
-
REFERENCED_DYNAMICALLY
public static final int REFERENCED_DYNAMICALLY
- See Also:
- Constant Field Values
-
N_DESC_DISCARDED
public static final int N_DESC_DISCARDED
- See Also:
- Constant Field Values
-
N_WEAK_REF
public static final int N_WEAK_REF
- See Also:
- Constant Field Values
-
N_WEAK_DEF
public static final int N_WEAK_DEF
- See Also:
- Constant Field Values
-
n_strx
public long n_strx
-
n_value
public long n_value
-
n_desc
public short n_desc
-
n_type
public byte n_type
-
n_sect
public byte n_sect
-
-
Method Detail
-
n_type_mask
public boolean n_type_mask(int mask)
-
n_type
public boolean n_type(int val)
-
n_desc
public boolean n_desc(int val)
-
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareToin interfacejava.lang.Comparable<java.lang.Object>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
lineInfo
public java.lang.String lineInfo()
Returns line information in the form of filename:line and if the information is not available may return null _or_ may return ??:??
-
lineInfo
public java.lang.String lineInfo(long vma)
-
getFunction
public java.lang.String getFunction()
If the function is available from the symbol information, this will return the function name. May return null if the function can't be determined.
-
getFilename
public java.lang.String getFilename()
If the filename is available from the symbol information, this will return the base filename information. May return null if the filename can't be determined.
-
getFuncLineNumber
public int getFuncLineNumber()
Returns the line number of the function which is closest associated with the address if it is available. from the symbol information. If it is not available, then -1 is returned.
-
getLineNumber
public int getLineNumber(long vma)
Returns the line number of the file if it is available from the symbol information. If it is not available, then -1 is returned.
-
-