Package: gdb
Version: 8.2.50.20190222-1
Severity: minor
I'm debugging libnotmuch, which is C++ code calling glib, and see the following
when attempting to examine a struct:
Breakpoint 1, _notmuch_message_file_parse (message=0x560a725d81a0) at
lib/message-file.c:147
147 notmuch_status_t status = NOTMUCH_STATUS_SUCCESS;
(gdb) p *message->stream
$1 = {parent_object = {g_type_instance = {Python Exception <class 'gdb.error'>
No type named TypeNode.:
g_class = }, ref_count = 1, qdata = 0x0}, super_stream = 0x0,
position = 0, bound_start = 0, bound_end = -1}
(gdb)
The underlying problem is actually missing debug symbols for glib
(installing libglib2.0-0-dbgsym fixes it). It would be great if the
error message was more helpful.
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500,
'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8),
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gdb depends on:
ii libbabeltrace1 1.5.6-2
ii libc6 2.28-8
ii libexpat1 2.2.6-1
ii libipt2 2.0-2
ii liblzma5 5.2.4-1
ii libncursesw6 6.1+20181013-2
ii libpython3.7 3.7.3~rc1-1
ii libreadline7 7.0-5
ii libtinfo6 6.1+20181013-2
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages gdb recommends:
ii libc6-dbg [libc-dbg] 2.28-8
Versions of packages gdb suggests:
pn gdb-doc <none>
ii gdbserver 8.2.1-2
-- no debconf information