Package: debhelper Version: 13.2.1 Severity: wishlist X-Debbugs-Cc: j...@joshtriplett.org
Packages can ship Python scripts in /usr/share/gdb/auto-load/${lib_path}-gdb.py to provide extensions for gdb to help debug programs that use that library. For instance, /usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28-gdb.py gets loaded when debugging a program using /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 . These files are needed only when debugging programs using those libraries. Thus, it makes sense to put them in -dbgsym packages, because they're desirable on exactly the systems that want the -dbgsym packages: a system that wants to debug a program using the corresponding library. Could (a new compat level of) debhelper install files named /usr/share/gdb/auto-load/${some_library_path}-gdb.py into the -dbgsym package corresponding to the package that installs ${some_library_path}? In addition, some packages want to import additional scripts from that auto-load file, so it'd be helpful to be able to provide a list of additional files to put in the -dbgsym package. Thanks, Josh Triplett