You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm that the issue still applies with gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) and GNU gdb (Fedora Linux) 15.2-2.fc41 on Fedora 41, and the PR still fixes it.
When attempting to debug shim in gdb, it currently gives the error:
Dwarf Error: DW_FORM_line_strp used without required section
This appears to be the same issue reported here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2014231 (also golang/vscode-go#1914 and haikuports/haikuports#4987), which is nothing to do with shim: current versions of gcc produce DWARF5 by default, but current versions of gdb only accept DWARF4.
Applying the gcc flags suggested in those issues (
-gdwarf-4 -gstrict-dwarf
) makes shim debuggable again.The text was updated successfully, but these errors were encountered: