Rather than have users manually perform this, I think we can get a system gdbinit that always runs, or maybe theres an ENV variable for us to set, or otherwise we can patch nix gdb (but this sounds unideal because this is a challenge image attribute).
Nix is tricky! It seems like the challenge image might need to be a bit more explicit about things.
This shows that image gdb knows where to find libc debug info:
Unfortunately nix gdb does not:
With
-ex 'set debug-file-directory /lib/debug'
nix gdb can find the debug info:Rather than have users manually perform this, I think we can get a system gdbinit that always runs, or maybe theres an ENV variable for us to set, or otherwise we can patch nix gdb (but this sounds unideal because this is a challenge image attribute).