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]

Re: gdb/gdbserver problems


Am Mi, 15.09.2010, 20:08 schrieb William Wagner:
>   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.

> 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?
Yes, me.
I'm using gcc-4.5.1, gdb 7.1, arm-920t-linux-gnueabi, linux 2.6.17.14,
and, of course, NPTL.

For some reason I forgot I install libpthread and libgcc_s
unstripped on the target.

Another important thing is that gdb and gdbserver
should be of the same version.

Regards
Titus



--
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]