SOLVED: GDB error on OS X lazarus / 12-Debugger ---------------------------------------------------------------------- tk · 2016-05-25 14:17 Hi, trying to setup Laz on OS X for the first time to compile a project for OS X. Have now OS X Yosemite (Hackintosh version) on VMware player. Laz setup suceeded, installed gdb via the wiki manual. But when I run default empty project and close the main form the gdb reports: Code: [Select]While executing the command: "TGDBMIDebuggerInstruction: "-file-exec-and-symbols ", " gdb reported: "&"solib-target.c:333: internal-error: void solib_target_free_so(struct so_list *): Assertion `so->lm_info->name == NULL' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\n""GDB version is 7.11, as project debugging format setting tried automatic and dwarf 2. ---------------------------------------------------------------------- Martin_fr · 2016-05-25 15:06 Maybe this will work... http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#internal- error:_clear_dangling_display_expressions ---------------------------------------------------------------------- tk · 2016-05-26 10:55 Setting "DisableLoadSymbolsForLibraries" to "True" helped here, thank you. Unfortunately sometimes I have to debug libraries and switch this back on. EDIT: Don't have to, debugging in libraries works even with "DisableLoadSymbolsForLibraries" set to "True"! EDIT2: Now when I worked with El Capitan and latest GDB 7.12, DisableLoadSymbolsForLibraries=True did not help. Had to check Debugger/General/Reset Debugger after each run. This helped. Have not tried to debug the library but debugging main app normally worked. ---------------------------------------------------------------------- ArminLinder · 2017-02-06 12:59 Great hint, thanks, had the same problem with Lazarus 1.6.2 on OSX 10.8 (Mountain Lion), checking this option worked. Armin.