Recent

Author Topic: SOLVED: GDB error on OS X  (Read 5391 times)

tk

  • Sr. Member
  • ****
  • Posts: 361
SOLVED: GDB error on OS X
« on: May 25, 2016, 04:17:33 pm »
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.
« Last Edit: May 26, 2016, 12:55:30 pm by tk »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki

tk

  • Sr. Member
  • ****
  • Posts: 361
Re: GDB error on OS X
« Reply #2 on: May 26, 2016, 12:55:14 pm »
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.
« Last Edit: November 23, 2016, 06:18:20 pm by tk »

ArminLinder

  • Sr. Member
  • ****
  • Posts: 314
  • Keep it simple.
Re: SOLVED: GDB error on OS X
« Reply #3 on: February 06, 2017, 01:59:42 pm »
Great hint, thanks, had the same problem with Lazarus 1.6.2 on OSX 10.8 (Mountain Lion), checking this option worked.

Armin.
Lazarus 3.3.2 on Windows 7,10,11, Debian 10.8 "Buster", macOS Catalina, macOS BigSur, VMWare Workstation 15, Raspberry Pi

 

TinyPortal © 2005-2018