Re: multithreaded programs on arm-linux

Daniel Jacobowitz
2005-11-04T15:40:48Z

On Fri, Nov 04, 2005 at 04:39:30PM +0100, Frank Meerkoetter wrote:
> Quoting Daniel Jacobowitz <drow@false.org>:
>
> >On Fri, Nov 04, 2005 at 10:23:21AM +0100, Frank Meerkoetter wrote:
> >>Quoting Daniel Jacobowitz <drow@false.org>:
> >>
> >>>On Thu, Nov 03, 2005 at 06:50:47PM +0100, Frank Meerkoetter wrote:
> >>>>objfile is NULL, why i couldn't figure out.
> >>>
> >>>That should be true the first time but not the second, if you've used
> >>>"file".
> >>
> >>Ok. The first time objfile is null. The second time target_has_execution
> >>is false.
> >
> >It doesn't get called after you say "run"? Is this a static executable
> >you're debugging?
>
> It does get called. Sorry, i tested the wrong thing.
>
> [...]
> /* Now attempt to open a connection to the thread library. */
> err = td_ta_new_p (&proc_handle, &thread_agent);
>
> It returns TD_NOLIBTHREAD.
>
> I know from stepping through thread_db_load() that
> That td_ta_new_p = verbose_dlsym (handle, "td_ta_new");
> was successfull.
>
> verbose_dlsym() also produced now warning that it couldn't
> find a certain symbol.
>
> td_ta_new seems to fail.
> I've downloaded the linuxThreads source but can't find any
> references to "td_ta_new".

It's in libthread_db, which is linuxthreads_db/ in the LinuxThreads
source.

It sounds like your libpthread.so has been stripped of some required
symbols.

--
Daniel Jacobowitz
CodeSourcery, LLC