diff options
| author | Ian Lance Taylor <iant@golang.org> | 2024-10-25 15:17:15 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2024-10-25 15:20:55 -0700 |
| commit | bab7a64c1ab95db3d651025ddb84f74c2b973bab (patch) | |
| tree | 3f82649e669f6f7ffdfa93df467f3d61b22200ba /libbacktrace | |
| parent | 35bf490452e06b3e3567933342fb15ef5d11f503 (diff) | |
libbacktrace: recognize new Mach-O DWARF sections
Patch from Pavel Safonov.
These sections are used on macOS Sequoia.
Fixes https://github.com/ianlancetaylor/libbacktrace/issues/136
* macho.c (dwarf_section_names): Add __debug_addr and
__debug_line_str.
Diffstat (limited to 'libbacktrace')
| -rw-r--r-- | libbacktrace/macho.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbacktrace/macho.c b/libbacktrace/macho.c index fc4c9591dfa..9f8738dd784 100644 --- a/libbacktrace/macho.c +++ b/libbacktrace/macho.c @@ -306,9 +306,9 @@ static const char * const dwarf_section_names[DEBUG_MAX] = "__debug_abbrev", "__debug_ranges", "__debug_str", - "", /* DEBUG_ADDR */ + "__debug_addr", "__debug_str_offs", - "", /* DEBUG_LINE_STR */ + "__debug_line_str", "__debug_rnglists" }; |
