libbacktrace: add Mach-O support
authorIan Lance Taylor <iant@golang.org>
Sun, 16 Feb 2020 13:20:01 +0000 (05:20 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 May 2020 23:09:37 +0000 (16:09 -0700)
commitdea40c941a4d443d1b748bafb8a74f02c360e810
treea0f524ed86fa37c9d7e8bd8d6627ee92df721c8b
parent4b26b13871a672059d1bdebbc4d87a4429c5abd8
libbacktrace: add Mach-O support

libbacktrace/
PR libbacktrace/88745
* macho.c: New file.
* filetype.awk: Recognize Mach-O files.
* Makefile.am (FORMAT_FILES): Add macho.c.
(check_DATA): New variable.  Set to .dSYM if HAVE_DSYMUTIL.
(%.dSYM): New pattern target.
(test_macho_SOURCES, test_macho_CFLAGS): New targets.
(test_macho_LDADD): New target.
(BUILDTESTS): Add test_macho.
(macho.lo): Add dependencies.
* configure.ac: Recognize macho file type.  Check for
mach-o/dyld.h.  Don't try to run objcopy if we don't find it.
Look for dsymutil and define a HAVE_DSYMUTIL conditional.
* Makefile.in: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
libbacktrace/ChangeLog
libbacktrace/Makefile.am
libbacktrace/Makefile.in
libbacktrace/config.h.in
libbacktrace/configure
libbacktrace/configure.ac
libbacktrace/filetype.awk
libbacktrace/macho.c [new file with mode: 0644]