Skip to content

debuginfo: Trunk compiler broke Lazarus/GDB debugging

FPC trunk 8b3c9e09 generates debug information unusable by GDB

The GDB command: "-break-insert ""/projects/lazarus/lcl/interfaces/gtk3/gtk3widgets.pas":4910"" did not return any result.

IDE debug console shows

(gdb) 
<info line "/projects/lazarus/lcl/interfaces/gtk3/gtk3widgets.pas":4910>
&"info line \"/projects/lazarus/lcl/interfaces/gtk3/gtk3widgets.pas\":4910\n"
&"Dwarf Error: Cannot find DIE at 0x2a17d1 referenced from DIE at 0x48de4e [in module /projects/laztest/gtk3_menu_test/project1]\n"
^error,msg="Dwarf Error: Cannot find DIE at 0x2a17d1 referenced from DIE at 0x48de4e [in module /projects/laztest/gtk3_menu_test/project1]"
(gdb) 
<-break-insert  "\"/projects/lazarus/lcl/interfaces/gtk3/gtk3widgets.pas\":4910">

hard-resetting the tree to efbf5eaa brings proper debugger behavior

Test project gtk3_menu_test.zip

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information