Package: gdb
Version: 10.1-1.7
Severity: wishlist
X-Debbugs-Cc: bernha...@mailbox.org

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



-- System Information:
Debian Release: 11.0
  APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing-debug'), (500, 'proposed-updates-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/16 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gdb depends on:
ii  libbabeltrace1          1.5.8-1+b3
ii  libc6                   2.31-12
ii  libdebuginfod1          0.183-1
ii  libexpat1               2.2.10-2
ii  libgcc-s1               10.2.1-6
ii  libipt2                 2.0.3-1
ii  liblzma5                5.2.5-2
ii  libmpfr6                4.1.0-3
ii  libncursesw6            6.2+20201114-2
ii  libpython3.9            3.9.2-1
ii  libreadline8            8.1-1
ii  libsource-highlight4v5  3.1.9-3+b1
ii  libstdc++6              10.2.1-6
ii  libtinfo6               6.2+20201114-2
ii  libxxhash0              0.8.0-2
ii  zlib1g                  1:1.2.11.dfsg-2

Versions of packages gdb recommends:
ii  libc6-dbg [libc-dbg]  2.31-12

Versions of packages gdb suggests:
pn  gdb-doc    <none>
pn  gdbserver  <none>

-- no debconf information








--- 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

Reply via email to