boilcode.com
水煮代码 | 我思故我在Int fd = open(“/tmp/test backtrack.txt”, O RDWR O CREAT O APPEND, 0644);. Cout “open file error! 8221; endl;. Void* backArr[MAX BACK DEPTH];. Int reals = backtrace. BackArr, MAX BACK DEPTH);. Cout “backtrace return:” reals endl;. Char* strings = backtrace symbols. BackArr, reals);. If (strings = NULL) {. Cout “backtrace symbols is error! 8221; endl;. For (int j = 0; j reals; j ). Cout strings[j] endl;. BackArr, reals, fd);. Int main(int argc , char * argv). Int backtrace(void * buffer,int size). Sigactio...
http://www.boilcode.com/