summaryrefslogtreecommitdiff
path: root/src/analysis
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
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')
-rw-r--r--src/analysis/binary.c25
-rw-r--r--src/analysis/binary.h3
2 files changed, 5 insertions, 23 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);
diff --git a/src/analysis/binary.h b/src/analysis/binary.h
index 813e0ec..94f4514 100644
--- a/src/analysis/binary.h
+++ b/src/analysis/binary.h
@@ -57,9 +57,6 @@ uint8_t *get_openida_binary_data(const openida_binary *, off_t *);
/* Fournit le format de fichier reconnu dans le contenu binaire. */
exe_format *get_openida_binary_format(const openida_binary *);
-/* Fournit le processeur exécutant le contenu binaire. */
-asm_processor *get_openida_binary_processor(const openida_binary *);
-
/* Fournit les options d'affichage définies pour le binaire. */
disass_options *get_openida_binary_options(const openida_binary *);