There's a closed pull request on the void-packages repository gcc: include gdb helpers for libstdc++ [ci skip] https://github.com/void-linux/void-packages/pull/37864 Description: So. Gcc (or more specifically libstdc++) includes extra files to make debugging C++ code in gdb easier. This includes pretty printers and xmethods. These files can significantly improve the experience of debugging C++ code. Debian based distros (and probably other ones) already include this into their libstdc++ package. But Void explicitly deletes these files that are generated when compiling. Rather than deleting these useful files, I included then into the libstdc++ package like Ubuntu does. This doesn't add any extra dependencies, gdb will try to load it if python is present, otherwise it'll ignore it. There are some other packages that already include extra info for gdb: `gstreamer1`, `glib-devel`... Interestingly enough, these packages put the files into `/usr/share/gdb/auto-load/usr/lib64` instead of `/usr/share/gdb/auto-load/usr/lib`, which isn't loaded by gdb at all (maybe because `/usr/lib64` is just a symlink). The files could be moved to `libstdc++-devel`. Maybe it would be more apropriate. I have built and tested the pretty printers and everything works. It took 5 and a half hours to compile for me (I dont have a very beefy computer), so I'm assigning `[ci skip]`. I know messing with a `bootstrap=yes` compiler could cause a disaster if something goes wrong but I'm only modifying revelant files and it's working for me (I have it installed on my computer) so I hope everything will be fine. #### Testing the changes - I tested the changes in this PR: **YES** #### Local build testing - I built this PR locally for my native architecture, (x86_64-glibc) - I built this PR locally for these architectures (if supported. mark crossbuilds): - I didn't test cross compiling. The python scripts aren't architecture dependent, so there should be no problems.