Dear Maintainer,
while investigating an issue in the test suite of rr-debugger,
I found that the libbfd part of gdb is not built with debug information,
therefore the dbgsym package also lacks this information.
While rebuilding gdb is doable, maybe it would be nice to have this
debug information in the package available.
Below modification added globally the '-g' flag and built me
a package that contained the debug information for libbfd.
But I am certain there is a more targetted place to add this.
Kind regards,
Bernhard
--- orig/gdb-10.1/debian/rules 2021-01-03 11:54:01.000000000 +0100
+++ try2/gdb-10.1/debian/rules 2021-06-20 23:09:52.391144630 +0200
@@ -8,6 +8,11 @@ include /usr/share/dpkg/architecture.mk
SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -SDate | date -f- +%s)
deb_version := $(shell dpkg-parsechangelog | awk '/^Version:/ {print
$$2}')
+# Add -g globally (especially libbfd seems to get compiled without -g)
+CFLAGS += -g
+CPPFLAGS += -g
+LDFLAGS += -g
+
# The top-level configure script fails to pass these down properly ...
export CPPFLAGS
export LDFLAGS