summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-07-08 11:39:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-07-08 11:39:43 (GMT)
commit412f9fd31e625dbb2b00c25b6cc6b4753acd409d (patch)
tree04734e5ae66a2b470be8e3987eb797487f2d1e70 /src
parent5dcd05f19ac62f6ff922176cd0ae6f8839910f2e (diff)
Fixed the display of code source.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@248 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src')
-rw-r--r--src/analysis/decomp/decompiler.c4
-rwxr-xr-xsrc/format/dex/dex.c2
-rw-r--r--src/format/format.c3
-rw-r--r--src/gtkext/gtksourceview.c2
4 files changed, 3 insertions, 8 deletions
diff --git a/src/analysis/decomp/decompiler.c b/src/analysis/decomp/decompiler.c
index de1b6d2..b144846 100644
--- a/src/analysis/decomp/decompiler.c
+++ b/src/analysis/decomp/decompiler.c
@@ -74,11 +74,11 @@ static void build_decomp_prologue(GCodeBuffer *buffer, const char *filename)
/* Introduction */
line = g_lang_output_continue_comments(output, buffer,
- SL(_("Binary data decompiled by OpenIDA")));
+ SL(_("Binary data decompiled by Chrysalide")));
g_buffer_line_start_merge_at(line, BLC_ADDRESS);
line = g_lang_output_continue_comments(output, buffer,
- SL(_("OpenIDA is free software - © 2008-2010 Cyrille Bagard")));
+ SL(_("Chrysalide is free software - © 2008-2012 Cyrille Bagard")));
g_buffer_line_start_merge_at(line, BLC_ADDRESS);
line = g_lang_output_continue_comments(output, buffer, NULL, 0);
diff --git a/src/format/dex/dex.c b/src/format/dex/dex.c
index 6061445..0d17a4d 100755
--- a/src/format/dex/dex.c
+++ b/src/format/dex/dex.c
@@ -224,8 +224,6 @@ static void g_dex_format_find_all_sources(GDexFormat *format)
bf = G_BIN_FORMAT(format);
- return; /* FIXME */
-
for (i = 0; i < format->classes_count; i++)
{
source = g_dex_class_get_source_file(format->classes[i], format);
diff --git a/src/format/format.c b/src/format/format.c
index e3f5a93..1a52e1e 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -397,9 +397,6 @@ void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer, co
//if (strcmp("cryptself", g_binary_routine_get_name(routines[i])) == 0)
{
-
- printf("...\n");
-
instr = g_binary_routine_get_decomp_instructions(routines[i]);
if (instr == NULL) continue;
diff --git a/src/gtkext/gtksourceview.c b/src/gtkext/gtksourceview.c
index 2e5ed48..1244bb8 100644
--- a/src/gtkext/gtksourceview.c
+++ b/src/gtkext/gtksourceview.c
@@ -154,6 +154,6 @@ static void gtk_source_view_attach_binary(GtkSourceView *view, GOpenidaBinary *b
/* FIXME */
if (buffer != NULL)
- gtk_buffer_view_attach_buffer(GTK_BUFFER_VIEW(view), buffer, addr, code);
+ gtk_buffer_view_attach_buffer(GTK_BUFFER_VIEW(view), g_buffer_view_new(buffer), addr, code);
}