This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ppc64 gdbserver NPTL problem


"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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]