]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libbacktrace: recognize new Mach-O DWARF sections
authorIan Lance Taylor <iant@golang.org>
Fri, 25 Oct 2024 22:17:15 +0000 (15:17 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 25 Oct 2024 22:20:55 +0000 (15:20 -0700)
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.

libbacktrace/macho.c

index fc4c9591dfa38a401d512d61f0e10ca395b5bbe8..9f8738dd7844792f21163c72d73eb3cdfb15fd95 100644 (file)
@@ -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"
 };