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 7.1 problem


On 23/09/2010 17:17, William Wagner wrote:
Hello,

I am trying to upgrade from gdb/gdbserver 6.8 to 7.1 on an arm toolchain built with crosstools.

Everything works fine when I use gdb/gdbserver 6.8 but when I change to 7.1 I get errors when gdb and gdbserver communicate of the form:

Remote 'g' packet reply is too long: 00000000b07edbbe0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c07ddbbe00000000a007004010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

After searching on the web it would seem to imply that gdb and gdbserver think the target has a different numbers of registers.

Has anyone come across this problem before?

Is it a runtime option to gdb/gdbserver I need to change or is it a compile time option set by crosstools-ng that is missing?

After getting help on the gdb list I have now fixed this problem. The issue was that my build machine did not have the expat development tools on it. Without expat support compiled into gdb it is unable to debug architectures that have different register sets. This change happened since gdb 7.0

I think that cross tools should fail to build gdb with an error if the host build machine does not have expat on it. This could either just be that the configure options be changed to include --with-expat or crosstools could check for it on the host machine explicitly (like buildroot does).

For the discussion on the gdb mailing list see http://sourceware.org/ml/gdb/2010-09/msg00128.html

Never done any changes to crosstools before but if someone could point me in the right direction I'd happily attempt a patch.

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]