| 273 | } |
| 274 | |
| 275 | int TakeStackTrace(struct dl_phdr_info* /*info*/, size_t /*size*/, void* data) { |
| 276 | StackTrace* s = reinterpret_cast<StackTrace*>(data); |
| 277 | s->Collect(0); |
| 278 | return 0; |
| 279 | } |
| 280 | |
| 281 | // Test that if we try to collect a stack trace while inside a libdl function |
| 282 | // call that we properly return the bogus stack indicating the issue. |