FS#65677 - [makepkg] not all source files get included in debug packages
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Monday, 02 March 2020, 02:47 GMT
Last edited by Allan McRae (Allan) - Monday, 02 May 2022, 13:59 GMT
Opened by Allan McRae (Allan) - Monday, 02 March 2020, 02:47 GMT
Last edited by Allan McRae (Allan) - Monday, 02 May 2022, 13:59 GMT
|
Details
Summary and Info:
We currently only look at the .debug_info section of readelf's output, finding DW_AT_name/DW_AT_comp_dir pair to grab file names. That gets the main compilation units, but misses header files. Header files can contain small functions, and so would be useful in debugging. We can additionally look in the .debug_line section. This section has a table of directories that source files come from (which can be filtered to remove system directories), and a file name table with files from each directory. This does not include the files we currently grab. |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 02 May 2022, 13:59 GMT
Reason for closing: Fixed
Additional comments about closing: git commit ae2f506ddfd11d9becda7216033fe1b159536982
Monday, 02 May 2022, 13:59 GMT
Reason for closing: Fixed
Additional comments about closing: git commit ae2f506ddfd11d9becda7216033fe1b159536982
I have also found cases of source files being installed to the same path they were copied from (e.g. `/tmp/qt5-base/src/...` instead of `/usr/src/debug/...`). Does the currently proposed patch also fix this?
Thanks.