summaryrefslogtreecommitdiff
path: root/src/binary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary.c')
-rw-r--r--src/binary.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/binary.c b/src/binary.c
index 4d31c40..6bfa551 100644
--- a/src/binary.c
+++ b/src/binary.c
@@ -43,6 +43,12 @@
#include "format/elf/e_elf.h"
#include "format/dwarf/d_dwarf.h"
+#include "format/java/e_java.h"
+
+
+#ifndef _
+# define _(str) str
+#endif
@@ -385,6 +391,8 @@ void fill_snippet(GtkSnippet *snippet, GtkWidget *panel, GtkWidget *panel2)
len = 0x28;
+ register_exe_format(_("Java"), java_is_matching, load_java);
+
bin_data = map_binary_file("/tmp/hello", &length);
@@ -395,6 +403,15 @@ void fill_snippet(GtkSnippet *snippet, GtkWidget *panel, GtkWidget *panel2)
+ format = load_new_exe_format(bin_data, length);
+
+ printf(" --> ok ? %p\n", format);
+
+ exit(0);
+
+ return;
+
+
format = load_elf(bin_data, length);
dformat = load_dwarf(bin_data, length, format);