* * *

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

tk

  • Sr. Member
  • ****
  • Posts: 352
    • tkweb
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 »
Lazarus 1.7 with FPC 3.1.1.

http://www.tkweb.eu/

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4332
    • wiki

tk

  • Sr. Member
  • ****
  • Posts: 352
    • tkweb
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 »
Lazarus 1.7 with FPC 3.1.1.

http://www.tkweb.eu/

Nimral

  • Jr. Member
  • **
  • Posts: 78
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.
Using Lazarus 1.6.2 on Windows 10/7/XP, VMWare Workstation 12

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus