BFD: /Users/****/****/filename: unknown load command 0x32 BFD: /Users/****/****/filename: unknown load command 0x32 "/Users/****/****/filename": not in executable format: file format not recognized (gdb) gdb is not recognizing gcc compiled files running on MacOS 10.14 Mojave.
Confirming that this also affects GDB 8.0.1 and GDB 8.1 (debugging binaries compiled using Apple Clang 10, and GCC 8.2). A related SO question: https://stackoverflow.com/questions/52529838/gdb-8-2-cant-recognized-executable-file-on-macos-mojave-10-14
Can confirm this issue is occurring for me as well on my macOS Mojave v.10.14.1
This is a duplicate of #23728.
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ddea148b3da27eb681504bf341f45abb7a74580b commit ddea148b3da27eb681504bf341f45abb7a74580b Author: Nick Clifton <nickc@redhat.com> Date: Tue Nov 6 17:09:40 2018 +0000 Add support for a couple of new Mach-O commands. PR 23742 * mach-o.c (bfd_mach_o_read_command): Accept and ignore BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION commands. * mach-o/loader.h: Add BFD_MACH_O_LC_BUILD_VERSION.
Marking this one as a dup, somewhat arbitrarily. *** This bug has been marked as a duplicate of bug 23728 ***