diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2011-06-02 08:38:58 +0300 |
---|---|---|
committer | Pauli Nieminen <suokkos@gmail.com> | 2011-06-02 20:20:56 +0300 |
commit | 583ad0bc5b8ff8414b4628b1b57981e28b2c0a6f (patch) | |
tree | 72350cd8b726bab38388cb0d87091902f3c62be5 /testunwind.c | |
parent | 8bf442213dbda897b0a7671090b6cbea87bb3c8a (diff) |
Imported Upstream version 1.1.6
Diffstat (limited to 'testunwind.c')
-rw-r--r-- | testunwind.c | 27 |
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; +} |