1 #include "compiler.h" 2 #include <libunwind.h> 3 #include <stdio.h> 4 5 int main(int argc,char ** argv UNUSED)6main (int argc, char **argv UNUSED) 7 { 8 int i, verbose = argc > 1; 9 const char *msg; 10 11 for (i = 0; i < 16; ++i) 12 { 13 msg = unw_strerror (-i); 14 if (verbose) 15 printf ("%6d -> %s\n", -i, msg); 16 } 17 return 0; 18 } 19