mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Sat Mar 29 11:14:38 2008 Søren Sandmann <sandmann@redhat.com> * unwind.[ch], testunwind.c: Beginning of a dwarf unwinder. svn path=/trunk/; revision=405
28 lines
339 B
C
28 lines
339 B
C
#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;
|
|
}
|