summaryrefslogtreecommitdiff
path: root/testunwind.c
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2011-06-02 08:38:58 +0300
committerPauli Nieminen <suokkos@gmail.com>2011-06-02 20:20:56 +0300
commit583ad0bc5b8ff8414b4628b1b57981e28b2c0a6f (patch)
tree72350cd8b726bab38388cb0d87091902f3c62be5 /testunwind.c
parent8bf442213dbda897b0a7671090b6cbea87bb3c8a (diff)
Imported Upstream version 1.1.6
Diffstat (limited to 'testunwind.c')
-rw-r--r--testunwind.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/testunwind.c b/testunwind.c
new file mode 100644
index 0000000..c6b4083
--- /dev/null
+++ b/testunwind.c
@@ -0,0 +1,27 @@
+#include "elfparser.h"
+#include "unwind.h"
+
+int
+main (int argc, char **argv)
+{
+ const guchar *data;
+ ElfParser *elf;
+
+ if (argc == 1)
+ {
+ g_print ("no arg\n");
+ return -1;
+ }
+
+ elf = elf_parser_new (argv[1], NULL);
+
+ if (!elf)
+ {
+ g_print ("NO ELF!!!!\n");
+ return -1;
+ }
+
+ unwind (elf);
+
+ return 0;
+}