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

See the CrossGCC FAQ for lots more information.


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

gdb/gdbserver problems


Hello,

I am trying to use a crosstools 1.8.1 toolchain with buildroot but am unable to get debugging of threaded applications working. My host is x64 and my target is arm.

I have tried with both eglibc and glibc using nptl and had the same results with both.

When using gdb >= 7.0 then I get the error "Remote 'g' packet reply is too long" when trying to set breakpoints. This is apparently because gdb and gdbserver don't think they are debugging the same arch.

When using gdb 6.8 it works mostly, except when trying to step over a pthread_create call when gdb hangs. I also see traces from the gdbserver saying "Cannot get thread info for LWP 246: generic error"

What must you have configured to get remote thread debugging working? My understanding is that the libthread_db.so must be present on the target, an unstripped version must also be present on the host and you must have set gdb to look for suitable libraries using set solib-absolute-prefix. Are there any required kernel options?

Does someone have remote thread debugging working with a crosstools toolchain for an arm target? If so could I have your ctrosstools config to try?

Thanks
Will

--
------------------------------------------------------------------------
Will Wagner                                     will_wagner@carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------



--
For unsubscribe information see http://sourceware.org/lists.html#faq


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