diff mbox series

libbacktrace patch committed: Recognize new Mach-O DWARF sections

Message ID CAOyqgcUNDP-EeYygHym3x1CqsT86HepkPtYm=gfUTvT2=7EBxg@mail.gmail.com
State New
Headers show
Series libbacktrace patch committed: Recognize new Mach-O DWARF sections | expand

Commit Message

Ian Lance Taylor Oct. 25, 2024, 10:21 p.m. UTC
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 mbox series

Patch

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"
 };