summaryrefslogtreecommitdiff
path: root/testunwind.c
blob: c6b408365769eadb464d8516e230e0c1c7601432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}