summaryrefslogtreecommitdiff
path: root/src/analysis/binary.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-05-17 22:59:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-05-17 22:59:55 (GMT)
commit4d0ff0c23862c242d533d9b2d34e8812ef99ad61 (patch)
tree3b8504b8d3946a8bc9a702b819138ab1e5501be6 /src/analysis/binary.c
parent96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (diff)
Used only the new format of processor/instructions/operands for x86.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@64 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/binary.c')
-rw-r--r--src/analysis/binary.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index e5e14bc..fbc9259 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -116,6 +116,10 @@ openida_binary *load_binary_file(const char *filename)
switch (get_exe_target_machine(result->format))
{
+ case FTM_386:
+ result->proc = get_arch_processor_for_type(APT_386);
+ break;
+
case FTM_JVM:
result->proc = get_arch_processor_for_type(APT_JVM);
break;
@@ -281,25 +285,6 @@ exe_format *get_openida_binary_format(const openida_binary *binary)
* *
* Paramètres : binary = élément binaire à consulter. *
* *
-* Description : Fournit le processeur exécutant le contenu binaire. *
-* *
-* Retour : Adresse du processeur associé. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-asm_processor *get_openida_binary_processor(const openida_binary *binary)
-{
- return binary->proc;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : binary = élément binaire à consulter. *
-* *
* Description : Fournit les options d'affichage définies pour le binaire. *
* *
* Retour : Adresse des options d'affichage. *
@@ -629,7 +614,7 @@ void disassemble_openida_binary(openida_binary *binary)
else
{
- parts = get_java_default_code_parts(binary->format, &parts_count);
+ parts = /* !!! */get_elf_default_code_parts(binary->format, &parts_count);
qsort(parts, parts_count, sizeof(bin_part *), compare_bin_parts);
printf("PARTS COUNT :: %d\n", parts_count);