Architecture plug-ins should be able to (de)initialize

This commit is contained in:
Pierre Pronchery 2011-09-27 22:11:02 +00:00
parent 00a21348cb
commit 6f523f4836
13 changed files with 26 additions and 0 deletions

View File

@ -220,6 +220,8 @@ struct _ArchPlugin
ArchRegister * registers; ArchRegister * registers;
ArchInstruction * instructions; ArchInstruction * instructions;
int (*init)(ArchPlugin * arch);
void (*exit)(ArchPlugin * arch);
int (*write)(ArchPlugin * arch, ArchInstruction * instruction, int (*write)(ArchPlugin * arch, ArchInstruction * instruction,
ArchInstructionCall * call); ArchInstructionCall * call);
int (*decode)(ArchPlugin * arch, ArchInstructionCall * call); int (*decode)(ArchPlugin * arch, ArchInstructionCall * call);

View File

@ -81,6 +81,8 @@ ArchPlugin arch_plugin =
NULL, NULL,
_amd64_registers, _amd64_registers,
_amd64_instructions, _amd64_instructions,
NULL,
NULL,
_i386_write, _i386_write,
_i386_decode _i386_decode
}; };

View File

@ -65,6 +65,8 @@ ArchPlugin arch_plugin =
&_arm_description, &_arm_description,
_arm_registers, _arm_registers,
_arm_instructions, _arm_instructions,
NULL,
NULL,
_arm_write, _arm_write,
NULL NULL
}; };

View File

@ -91,6 +91,8 @@ ArchPlugin arch_plugin =
&_dalvik_description, &_dalvik_description,
_dalvik_registers, _dalvik_registers,
_dalvik_instructions, _dalvik_instructions,
NULL,
NULL,
_dalvik_write, _dalvik_write,
_dalvik_decode _dalvik_decode
}; };

View File

@ -73,6 +73,8 @@ ArchPlugin arch_plugin =
NULL, NULL,
_i386_registers, _i386_registers,
_i386_instructions, _i386_instructions,
NULL,
NULL,
_i386_write, _i386_write,
_i386_decode _i386_decode
}; };

View File

@ -74,6 +74,8 @@ ArchPlugin arch_plugin =
NULL, NULL,
_i386_real_registers, _i386_real_registers,
_i386_real_instructions, _i386_real_instructions,
NULL,
NULL,
_i386_write, _i386_write,
_i386_decode _i386_decode
}; };

View File

@ -74,6 +74,8 @@ ArchPlugin arch_plugin =
NULL, NULL,
_i486_registers, _i486_registers,
_i486_instructions, _i486_instructions,
NULL,
NULL,
_i386_write, _i386_write,
_i386_decode _i386_decode
}; };

View File

@ -75,6 +75,8 @@ ArchPlugin arch_plugin =
NULL, NULL,
_i586_registers, _i586_registers,
_i586_instructions, _i586_instructions,
NULL,
NULL,
_i386_write, _i386_write,
_i386_decode _i386_decode
}; };

View File

@ -77,6 +77,8 @@ ArchPlugin arch_plugin =
NULL, NULL,
_i686_registers, _i686_registers,
_i686_instructions, _i686_instructions,
NULL,
NULL,
_i386_write, _i386_write,
_i386_decode _i386_decode
}; };

View File

@ -262,6 +262,8 @@ ArchPlugin arch_plugin =
&_java_description, &_java_description,
_java_registers, _java_registers,
_java_instructions, _java_instructions,
NULL,
NULL,
_java_write, _java_write,
_java_decode _java_decode
}; };

View File

@ -54,6 +54,8 @@ ArchPlugin arch_plugin =
&_mips_description, &_mips_description,
_mips_registers, _mips_registers,
_mips_instructions, _mips_instructions,
NULL,
NULL,
_mips_write, _mips_write,
NULL NULL
}; };

View File

@ -54,6 +54,8 @@ ArchPlugin arch_plugin =
&_sparc_description, &_sparc_description,
_sparc_registers, _sparc_registers,
_sparc_instructions, _sparc_instructions,
NULL,
NULL,
_sparc_write, _sparc_write,
_sparc_decode _sparc_decode
}; };

View File

@ -54,6 +54,8 @@ ArchPlugin arch_plugin =
&_sparc64_description, &_sparc64_description,
_sparc64_registers, _sparc64_registers,
_sparc64_instructions, _sparc64_instructions,
NULL,
NULL,
_sparc_write, _sparc_write,
_sparc_decode _sparc_decode
}; };