Maybe already known stuff, but.....
Massimo Del Fedele
max at veneto.com
Mon Apr 20 17:44:45 CDT 2009
Today I found this :
size = backtrace (array, 50);
strings = backtrace_symbols (array, size);
printf ("Obtained %zd stack frames.\n", size);
for (i = 0; i < size; i++)
printf ("%s\n", strings[i]);
That allow to dump a backtrace (here max 50 frames) from inside a running program.
Quite useful if app is non debuggable and don't run with +relay on because
of copy protection.
More information about the wine-devel