Created attachment 11606 [details] binary and separate debuginfo Seen at least with 2.32 on x86_64. $ gdb hello GNU gdb (Ubuntu 8.2.1-0ubuntu1) 8.2.1 [...] Reading symbols from hello...BFD: /usr/lib/debug/.build-id/3f/a492da4dec8933b2173d353444f17547e4b342.debug: unable to initialize decompress status for section .debug_aranges BFD: /usr/lib/debug/.build-id/3f/a492da4dec8933b2173d353444f17547e4b342.debug: unable to initialize decompress status for section .debug_aranges warning: File "/usr/lib/debug/.build-id/3f/a492da4dec8933b2173d353444f17547e4b342.debug" has no build-id, file skipped (no debugging symbols found)...done.
Created attachment 11607 [details] binary and separate debuginfo (2.31.1) works when linked with binutils 2.31.1.
hmm, this works with a gdb built from the trunk
(In reply to Matthias Klose from comment #2) > hmm, this works with a gdb built from the trunk Does this mean that this is a GDB issue ? Which version of GDB were you using when you discovered the failure ? Assuming that it was from a branch of GDB, then it is likely that the problem has been fixed on the mainline but not backported to that branch. Check out PR 23919 as a possible culprit. Cheers Nick
yes, this is seen with gdb 8.2.1. Backporting that patch to gdb solves the issue and gdb is able to read both the unfixed and fixed compressed debug sections.
OK, I am closing this PR then.