Re-add separateDebugInfo = true; once the GDB bugfix is rolled out everywhere #1003

Open
opened 2025-10-04 13:48:05 +00:00 by ma27 · 4 comments
Member

Describe the bug

Not a real bug, but I figured having an issue for documentation purposes is still sensible.

In https://gerrit.lix.systems/c/lix/+/3880 we had to turn off separateDebugInfo = true; since this resulted in the debug script not being loaded.

The reason is that the hook for separateDebugInfo=true; also turns on compression for these sections, but the code-path in GDB for loading user scripts regressed on loading compressed scripts recently.

I filed a patch for binutils-gdb: https://sourceware.org/pipermail/gdb-patches/2025-October/221398.html

Once it's available for nixpkgs, we should turn separateDebugInfo for Linux back on.

Additional context

Add any other context about the problem here.

## Describe the bug Not a real bug, but I figured having an issue for documentation purposes is still sensible. In https://gerrit.lix.systems/c/lix/+/3880 we had to turn off `separateDebugInfo = true;` since this resulted in the debug script not being loaded. The reason is that the hook for `separateDebugInfo=true;` also turns on compression for these sections, but the code-path in GDB for loading user scripts regressed on loading compressed scripts recently. I filed a patch for binutils-gdb: https://sourceware.org/pipermail/gdb-patches/2025-October/221398.html Once it's available for nixpkgs, we should turn `separateDebugInfo` for Linux back on. ## Additional context Add any other context about the problem here.
ma27 self-assigned this 2025-10-04 13:48:05 +00:00

has the upstream bug been fixed yet?

has the upstream bug been fixed yet?
Owner

Yes, but it's not released yet. They missed pulling our commit for the last gdb release for no apparent reason.

Yes, but it's not released yet. They missed pulling our commit for the last gdb release for no apparent reason.
Author
Member

fwiw, I'm keeping an eye on upstream releases currently (also because I'm awaiting the test-case they sniped me into writing to be merged :D)

fwiw, I'm keeping an eye on upstream releases currently (also because I'm awaiting the test-case they sniped me into writing to be merged :D)
Author
Member
The patch got now backported to the 17.x branch, so it will be part of gdb 17.2: https://sourceware.org/bugzilla/show_bug.cgi?id=33768, https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0926b8b8339ce5aacd564dd319a284375e4861db
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1003
No description provided.