mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
move source around in preparation to land sysprof2
This commit is contained in:
27
lib/testunwind.c
Normal file
27
lib/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