Package org.jakstab.asm

Examples of org.jakstab.asm.SymbolFinder


      FileWriter out = new FileWriter(filename);
      for (Map.Entry<AbsoluteAddress,Instruction> entry : program.getAssemblyMap().entrySet()) {
        AbsoluteAddress pc = entry.getKey();
        Instruction instr = entry.getValue();
        StringBuilder sb = new StringBuilder();
        SymbolFinder symFinder = program.getModule(pc).getSymbolFinder();
        if (symFinder.hasSymbolFor(pc)) {
          sb.append(Characters.NEWLINE);
          sb.append(symFinder.getSymbolFor(pc));
          sb.append(":").append(Characters.NEWLINE);
        }
        sb.append(pc).append(":\t");
        sb.append(instr.toString(pc.getValue(), symFinder));
       
View Full Code Here


  }

  @Override
  public SymbolFinder getSymbolFinder() {
    if (symFinder == null) {
      symFinder = new SymbolFinder() {
       
        @Override
        public boolean hasSymbolFor(AbsoluteAddress va) {
          return addressMap.containsKey(va);
        }
View Full Code Here

TOP

Related Classes of org.jakstab.asm.SymbolFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.