[pacman-dev] [PATCH] makepkg: Include more source files in debug packages.
eschwartz at archlinux.org
Thu Feb 20 03:40:52 UTC 2020
On 2/19/20 8:51 PM, Austin Lund wrote:
> Currently only the file pointed to by the DW_AT_name is included as a source
> file in debug packages. This means many files that are useful for debugging are
> not included. For example, no header files are included but yet these may by
> referenced in the .debug_line section.
Why do we need headers? headers by definition are supposed to declare
things that are then defined by a source file which is in DW_AT_name.
> This sed script converts into shell variables the debug dump information from
> readelf about compilation units, directory tables and file tables. This can be
> used to get the full path of all the source files from within the package being
> compiled that are referenced in the debugging information. Also, placeholder
> symbols (e.g. <builtin>) and paths outside the current source (e.g. linked
> libraries) will be more consistently ignored from inclusion in the debug
I... don't really follow what this sed thing is doing. Is it printing
out a bash script? Why?
Bug Wrangler and Trusted User
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1601 bytes
Desc: OpenPGP digital signature
More information about the pacman-dev