示例#1
0
 def create_function_data(symbol, overwrite_names, offset, identFunc,
                          identData, import_functions, import_objects):
     typeSymbol = symbol.get("type")
     if (typeSymbol == identFunc) and import_functions:
         IDAtools.create_function(symbol, overwrite_names, offset)
     elif (typeSymbol == identData) and import_objects:
         IDAtools.create_object(symbol, overwrite_names, offset)
示例#2
0
    def import_hardware_regs(overwrite_names, Path, import_segments):

        segements = ParseHardwareregisterFile.get_segments(Path)
        register = ParseHardwareregisterFile.get_register(Path)

        if import_segments:
            for seg in segements:
                IDAtools.create_segement(seg, 0)

        for regs in register:
            IDAtools.create_object(regs, overwrite_names, 0)