Greetings, This patch: http://sourceware.org/ml/gdb-patches/2009-07/msg00417.html caused Darwin/MacOSX to stop working with assertion: objfiles.c:793: internal-error: qsort_cmp: Assertion `obj_section_endaddr (sect1) <= sect2_addr' failed. Turns out this worked only "by accident" before. Here is a proposed fix. Tested by running "./gdb ./gdb", setting breakpoints, etc. (I don't have dejagnu setup on MacOS yet). Thanks, -- Paul Pluzhnikov 2009-08-14 Paul Pluzhnikov * objfiles.h (OBJF_NOT_MAPPED): New macro. * objfiles.c (update_section_map): Ignore unmapped objfiles. * machoread.c (macho_oso_symfile): Set OBJF_NOT_MAPPED for oso files.