mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Beginning of a dwarf unwinder.
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
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
72ef8ca8c6
commit
d2a6151f8d
27
testunwind.c
Normal file
27
testunwind.c
Normal file
@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user