Re: [coldfire-gnu-discuss] m5272, gdb/gdbserver and uClinux/pthreads... again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldfire-gnu-discuss] m5272, gdb/gdbserver and uClinux/pthreads... again



On 5/18/10 8:53 AM, Harry Gunnarsson wrote:
Hi,
Back in march 8th I inquired about pthread debugging under uClinux using
gdbserver and Maxim and I had a brief discussion on the topic(you could
look up the thread on codesourcery website). I believe his stance was
that it should work. I tested again using the brand new 4.4-216, but I
am still unsuccessful debugging pthread apps under uclinux.
Recap; this used to work using uclinux 2007 and CodeSourcery 4.2. Now
with newer kernel/distro and newer toolchain, it doesn't work; once
doing 'target remote' from host, gdbserver bails out. Also, debugging
non-threaded apps works perfectly.

BTW, I am using the uClinux distro from uclinux.org <http://uclinux.org>.

FWIW, we test our toolchains against LTIB rootfs.


Some other postings on the mailing lists got me wondered;
- Is there anything in the kernel configuration that is required for
debugging pthreads?

Does anyone had any success doing this kind of debugging?

Can you provide a simple testcase that uses pthreads and debugging which does not work?

Thank you,

--
Maxim Kuvyrkov
CodeSourcery
maxim@xxxxxxxxxxxxxxxx
(650) 331-3385 x724