Package org.eclipse.cdt.utils.macho
Class MachO
- java.lang.Object
-
- org.eclipse.cdt.utils.macho.MachO
-
@Deprecated public class MachO extends java.lang.ObjectDeprecated.Deprecated as of CDT 6.1. Use 64 bit versionMachO64. This class is planned for removal in next major release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMachO.AttributeDeprecated.classMachO.DyLibDeprecated.classMachO.DyLibCommandDeprecated.classMachO.DyLibModuleDeprecated.classMachO.DyLibReferenceDeprecated.classMachO.DyLibTableOfContentsDeprecated.classMachO.DyLinkerCommandDeprecated.classMachO.DySymtabCommandDeprecated.classMachO.FVMFileCommandDeprecated.classMachO.FVMLibDeprecated.classMachO.FVMLibCommandDeprecated.classMachO.IdentCommandDeprecated.classMachO.LCStrDeprecated.static classMachO.LineDeprecated.Simple class to implement a line tableclassMachO.LoadCommandDeprecated.classMachO.MachOhdrDeprecated.classMachO.PrebindCksumCommandDeprecated.classMachO.PreboundDyLibCommandDeprecated.classMachO.RoutinesCommandDeprecated.classMachO.SectionDeprecated.classMachO.SegmentCommandDeprecated.classMachO.SubClientCommandDeprecated.classMachO.SubFrameworkCommandDeprecated.classMachO.SubLibraryCommandDeprecated.classMachO.SubUmbrellaCommandDeprecated.classMachO.SymbolDeprecated.static classMachO.SymbolComparatorDeprecated.We have to implement a separate compararator since when we do the binary search down below we are using a Long and a Symbol object and the Long doesn't know how to compare against a Symbol so if we compare Symbol vs Long it is ok, but not if we do Long vs Symbol.classMachO.SymSegCommandDeprecated.classMachO.SymtabCommandDeprecated.classMachO.ThreadCommandDeprecated.classMachO.TwoLevelHintDeprecated.classMachO.TwoLevelHintsCommandDeprecated.classMachO.UnknownCommandDeprecated.
-
Field Summary
Fields Modifier and Type Field Description protected CPPFiltcppFiltDeprecated.protected booleancppFiltEnabledDeprecated.protected booleandebugsymDeprecated.protected ERandomAccessFileefileDeprecated.protected static java.lang.StringEMPTY_STRINGDeprecated.protected java.lang.StringfileDeprecated.protected MachO.LoadCommand[]loadcommandsDeprecated.protected MachO.MachOhdrmhdrDeprecated.protected static MachO.SymbolComparatorsymbol_comparatorDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedMachO()Deprecated.MachO(java.lang.String file)Deprecated.MachO(java.lang.String file, boolean filton)Deprecated.MachO(java.lang.String file, long offset)Deprecated.MachO(java.lang.String file, long offset, boolean filton)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancppFilterEnabled()Deprecated.voiddispose()Deprecated.protected voidfinalize()Deprecated.Make sure we do not leak the fds.MachO.AttributegetAttributes()Deprecated.static MachO.AttributegetAttributes(byte[] array)Deprecated.static MachO.AttributegetAttributes(java.lang.String file)Deprecated.MachO.DyLib[]getDyLibs(int type)Deprecated.MachO.Symbol[]getDynamicSymbols()Deprecated.java.lang.StringgetFilename()Deprecated.MachO.Line[]getLineTable()Deprecated.MachO.Symbol[]getLocalSymbols()Deprecated.MachO.MachOhdrgetMachOhdr()Deprecated.MachO.Section[]getSections()Deprecated.MachO.SymbolgetSymbol(long vma)Deprecated.java.lang.ObjectgetSymbolReader()Deprecated.MachO.Symbol[]getSymbols()Deprecated.MachO.Symbol[]getSymtabSymbols()Deprecated.static booleanisMachOHeader(byte[] bytes)Deprecated.voidloadBinary()Deprecated.voidsetCppFilter(boolean enabled)Deprecated.protected java.lang.Stringstring_from_macho_symtab(MachO.SymtabCommand symtab, int index)Deprecated.longswapInt(long val)Deprecated.intswapShort(short val)Deprecated.
-
-
-
Field Detail
-
efile
protected ERandomAccessFile efile
Deprecated.
-
mhdr
protected MachO.MachOhdr mhdr
Deprecated.
-
loadcommands
protected MachO.LoadCommand[] loadcommands
Deprecated.
-
cppFiltEnabled
protected boolean cppFiltEnabled
Deprecated.
-
cppFilt
protected CPPFilt cppFilt
Deprecated.
-
file
protected java.lang.String file
Deprecated.
-
debugsym
protected boolean debugsym
Deprecated.
-
EMPTY_STRING
protected static final java.lang.String EMPTY_STRING
Deprecated.- See Also:
- Constant Field Values
-
symbol_comparator
protected static final MachO.SymbolComparator symbol_comparator
Deprecated.
-
-
Constructor Detail
-
MachO
protected MachO()
Deprecated.
-
MachO
public MachO(java.lang.String file, long offset) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
MachO
public MachO(java.lang.String file) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
MachO
public MachO(java.lang.String file, long offset, boolean filton) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
MachO
public MachO(java.lang.String file, boolean filton) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
string_from_macho_symtab
protected java.lang.String string_from_macho_symtab(MachO.SymtabCommand symtab, int index) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
cppFilterEnabled
public boolean cppFilterEnabled()
Deprecated.
-
setCppFilter
public void setCppFilter(boolean enabled)
Deprecated.
-
getMachOhdr
public MachO.MachOhdr getMachOhdr() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getAttributes
public MachO.Attribute getAttributes() throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getAttributes
public static MachO.Attribute getAttributes(java.lang.String file) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getAttributes
public static MachO.Attribute getAttributes(byte[] array) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
isMachOHeader
public static boolean isMachOHeader(byte[] bytes)
Deprecated.
-
dispose
public void dispose()
Deprecated.
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.Make sure we do not leak the fds.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
loadBinary
public void loadBinary() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
getSymbols
public MachO.Symbol[] getSymbols()
Deprecated.
-
getDynamicSymbols
public MachO.Symbol[] getDynamicSymbols()
Deprecated.
-
getSymtabSymbols
public MachO.Symbol[] getSymtabSymbols()
Deprecated.
-
getLocalSymbols
public MachO.Symbol[] getLocalSymbols()
Deprecated.
-
getLineTable
public MachO.Line[] getLineTable()
Deprecated.
-
getSections
public MachO.Section[] getSections()
Deprecated.
-
getDyLibs
public MachO.DyLib[] getDyLibs(int type)
Deprecated.
-
getSymbol
public MachO.Symbol getSymbol(long vma)
Deprecated.
-
swapInt
public long swapInt(long val)
Deprecated.
-
swapShort
public int swapShort(short val)
Deprecated.
-
getFilename
public java.lang.String getFilename()
Deprecated.
-
getSymbolReader
public java.lang.Object getSymbolReader()
Deprecated.
-
-