Commit ddd123e
committed
Auto merge of #44251 - kennytm:osx-backtrace, r=alexcrichton
Add libbacktrace support for Apple platforms (resubmitted)
Resubmitting #43422 rebased on the current master (cc @JohnColanduoni).
I have added an additional commit to fallback to `dladdr`-based `resolve_symbol` if `libbacktrace` returns `None`, otherwise the stack trace will be full of `<unknown>` when you forget to pass the `-g` flag (actually it seems — at least on macOS — the `dladdr` symbol is more accurate than the `libbacktrace` one).File tree
10 files changed
+1477
-24
lines changed- src
- libbacktrace
- libstd
- sys_common
- sys/unix/backtrace
- printing
- test/run-pass
10 files changed
+1477
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11844 | 11844 | | |
11845 | 11845 | | |
11846 | 11846 | | |
| 11847 | + | |
| 11848 | + | |
| 11849 | + | |
11847 | 11850 | | |
11848 | 11851 | | |
11849 | 11852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments