I'm running the Sakoman gnome-r11 release of Angstrom. I am debugging
a large mutli-threaded program, and having no luck with gdb.
On starting, gdb always compains, usually multiple times:
"warning: unable to find libthread_db matching inferior's thread
library, thread debugging will not be available"
And, sure enough it doesn't seem to be. I can't set breakpoints, and
since my main program sets things up and then sits in an event loop,
leaving all the work to other threads, I can't debug.
Is this message about libthread_db apropos to my issue? If so, any
ideas on how I fix this so I can use gdb?
I'm running the Sakoman gnome-r11 release of Angstrom. I am debugging
a large mutli-threaded program, and having no luck with gdb.
On starting, gdb always compains, usually multiple times:
"warning: unable to find libthread_db matching inferior's thread
library, thread debugging will not be available"
And, sure enough it doesn't seem to be. I can't set breakpoints, and
since my main program sets things up and then sits in an event loop,
leaving all the work to other threads, I can't debug.
Is this message about libthread_db apropos to my issue? If so, any
ideas on how I fix this so I can use gdb?
yes, you need to have that lib on your system. and it must NOT be stripped
afaik.
I am having a similar problem, however when I install glibc-dbg and
libthread-db1 the error changes to:
(gdb) run
warning: no loadable sections found in added symbol-file /lib/.debug/
ld-2.9.so
warning: no loadable sections found in added symbol-file /usr/
lib/.debug/libdbus-glib-1.so.2.1.0
warning: no loadable sections found in added symbol-file /usr/
lib/.debug/libgobject-2.0.so.0.2400.0
warning: no loadable sections found in added symbol-file /usr/
lib/.debug/libglib-2.0.so.0.2400.0
warning: no loadable sections found in added symbol-file /usr/
lib/.debug/libdbus-1.so.3.4.0
[Thread debugging using libthread_db enabled]
warning: no loadable sections found in added symbol-file /usr/
lib/.debug/libgthread-2.0.so.0.2400.0
Cannot find new threads: generic error