Re: ppc64 gdbserver NPTL problem

Andreas Schwab
2005-10-16T16:58:59Z

"Dmitry S. Vasilchenko" <newdimm@gmail.com> writes:

> I have met some problems with gdbserver and multithread debugging.
> The problem is that on ppc64 td_ta_event_addr from glibc returns the
> pointer to function descriptor, not the address of the function. As a
> result, gdbserver installs breakpoint at the memory address in .opd
> section, not at the function glibs expects. So gdbserver will never
> receive information about new threads creation on ppc64.
>
> It is easy to fix, but I am not sure, maybe this should be fixed in
> glibc. Your thoughts?

I think gdbserver needs to do the equivalent of
gdbarch_convert_from_func_ptr_addr, as it is done in
linux-thread-db.c:enable_thread_event.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃŸe 5, 90409 NÃ¼rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."