Re: multithreaded programs on arm-linux

Daniel Jacobowitz
2005-11-03T15:07:12Z

On Thu, Nov 03, 2005 at 04:00:09PM +0100, Frank Meerkoetter wrote:
> Quoting Daniel Jacobowitz <drow@false.org>:
>
> Hi,
>
> >OK, let's start at the top then.
> >
> >1. Is gdbserver linked to libthread_db.so during build?
>
> I'm not using the gdbserver but rather running the gdb on
> the target. The reason is that i didn't managed to
> remote debug a program which is dynamically linked.
>
> I assume gdb is linked against libthread_db.so

GDB uses dlopen to get at libthread_db.so. Does it do that? Does
initialization fail?

You'll need to attach a debugger to gdb and look at thread_db_init.
The first call will generally fail but a later one should succeed.

--
Daniel Jacobowitz
CodeSourcery, LLC