This patch by Pavel Safonov recognizes the new DWARF section names
used on macos Sequoia.  Bootstrapped and ran libbacktrace tests on
x86_64-pc-linux-gnu.  Committed to mainline.

Ian

* macho.c (dwarf_section_names): Add __debug_addr and
__debug_line_str.
d97243588c8b5cbe8b657fd51f08038c42c81908
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"
 };
 

Reply via email to