GDB: Remote target error

I was trying to debug a program on an ARM target and the debugger kept giving me this problem:

gdb malformed packet

Looking online, this error occurs because of a mismatch between the gdb on the host and the gdbserver on the target. The mismatch can be either different version of gdb or gdbserver, or in my case the arm-none-linux-gnueabi didn’t match with arm-angstrom- gdbserver.

If you’ve got a cross compiled toolchain, you can find gdbserver in the path:


[CROS_COMPILE]/libc/lib/ [any dependent libs]

Copy over the gdbserver to the sd card in /usr/bin and the libraries to /lib


This entry was posted in Linux, troubleshooting and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s