Package: gdb
Version: 13.1-3
Severity: important
X-Debbugs-Cc: tomasz.paw...@wp.eu

The gdb compiled for Debian12 is extremely slow - it takes tens of seconds to
minutes
to execute even the simplest commands, like "info args", or "backtrace" - for a
medium size program.

I've modified Codeblocks IDE to measure gdb response times, here's the link:
https://forums.codeblocks.org/index.php/topic,25561.msg174050.html#msg174050

Apparently the problem is with the build flags used to compile gdb.
I've made a test build of the source package:
"gdb-source_13.1-3_all.deb"
build flags:

> export target_configargs="--enable-threading --with-gnu-ld --enable-
libbacktrace --with-zstd --with-system-readline --with-system-zlib --with-
xxhash=yes --disable-unit-tests --disable-sim"
> ./configure --enable-lto --enable-vtable-verify --disable-libstdcxx

The newly built gdb is working as expected - measured response times are close
to zero (see the link posted above)

Regards


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

Kernel: Linux 6.1.0-13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
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.11-1+b2
ii  libc6                   2.36-9+deb12u3
ii  libdebuginfod1          0.188-2.1
ii  libexpat1               2.5.0-1
ii  libgcc-s1               12.2.0-14
ii  libgmp10                2:6.2.1+dfsg1-1.1
ii  libipt2                 2.0.5-1
ii  liblzma5                5.4.1-0.2
ii  libmpfr6                4.2.0-1
ii  libncursesw6            6.4-4
ii  libpython3.11           3.11.2-6
ii  libreadline8            8.2-1.3
ii  libsource-highlight4v5  3.1.9-4.2+b3
ii  libstdc++6              12.2.0-14
ii  libtinfo6               6.4-4
ii  libxxhash0              0.8.1-1
ii  libzstd1                1.5.4+dfsg2-5
ii  zlib1g                  1:1.2.13.dfsg-1

Versions of packages gdb recommends:
ii  libc6-dbg [libc-dbg]  2.36-9+deb12u3

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

-- no debconf information

Reply via email to