summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-10-07 22:07:27 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-10-07 22:07:27 (GMT)
commita5e162d47a574f334b172dfee3128a40e8d52fb3 (patch)
tree5816a46365d196f40ac39fed884a9ee20fb44194 /src/analysis
parent1d5f7f28f92251dc4d3bff8d87b3e3052ab9cab2 (diff)
Created a compiler for architecture instruction definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@410 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/disass/fetch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/disass/fetch.c b/src/analysis/disass/fetch.c
index 97cad33..eee2eb6 100644
--- a/src/analysis/disass/fetch.c
+++ b/src/analysis/disass/fetch.c
@@ -159,6 +159,8 @@ static GArchInstruction *load_code_binary(const GLoadedBinary *binary, const vmp
{
instr = g_arch_processor_disassemble(proc, NULL, bin_data, &pos, end);
+ if (!G_IS_RAW_INSTRUCTION(instr)) printf("GOT %p\n", instr);
+
if (instr == NULL)
instr = g_raw_instruction_new_array(bin_data, MDS_32_BITS, 1, &pos, end,
g_arch_processor_get_endianness(proc));
@@ -294,7 +296,7 @@ GArchInstruction *disassemble_binary_content(const GLoadedBinary *binary, GtkExt
/* Traiter la diff */
- if (cmp_vmpa_by_phy(last, border) < 0)
+ if (0 && cmp_vmpa_by_phy(last, border) < 0)
{
joint = load_raw_binary(binary, last,
get_phy_addr(last) + compute_vmpa_diff(border, last),