~ubuntu-branches/ubuntu/trusty/sysprof/trusty

« back to all changes in this revision

Viewing changes to testunwind.c

  • Committer: Bazaar Package Importer
  • Author(s): Ritesh Raj Sarraf
  • Date: 2011-06-13 23:05:39 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110613230539-426qhsc3k996edou
Tags: 1.1.6-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "elfparser.h"
 
2
#include "unwind.h"
 
3
 
 
4
int
 
5
main (int argc, char **argv)
 
6
{
 
7
    const guchar *data;
 
8
    ElfParser *elf;
 
9
 
 
10
    if (argc == 1)
 
11
    {
 
12
        g_print ("no arg\n");
 
13
        return -1;
 
14
    }
 
15
 
 
16
    elf = elf_parser_new (argv[1], NULL);
 
17
 
 
18
    if (!elf)
 
19
    {
 
20
        g_print ("NO ELF!!!!\n");
 
21
        return -1;
 
22
    }
 
23
 
 
24
    unwind (elf);
 
25
    
 
26
    return 0;
 
27
}