+ {
+ StackFrame frame;
+ frame.address = addresses[i];
+ if(dladdr(addresses[i], &dli))
+ {
+ frame.file = dli.dli_fname;
+ if(dli.dli_sname)
+ frame.symbol = demangle(dli.dli_sname);
+ }
+ else
+ frame.file = "<unknown>";
+ bt.frames.push_back(frame);
+ }