Eclipse remote gdbserver debug error

I was getting this error:

Error during file upload.
Could not write file: /siam/IPController/ipcontroller/Design/firmware/ipcontroller/app/Debug/ipcontroller.
Failure
Could not write file: /siam/IPController/ipcontroller/Design/firmware/ipcontroller/app/Debug/ipcontroller.
Could not write file: /siam/IPController/ipcontroller/Design/firmware/ipcontroller/app/Debug/ipcontroller

Searching in the internet I found this thread: https://www.toradex.cn/community/questions/28902/getting-started-debug-using-eclipse-error.html

But with no solution.

After many hours debugging it with no progress (because Eclipse doesn’t show what is happening behind the scene), I decided to run gdbserver and gdb manually like I did some years ago: https://acassis.wordpress.com/2013/02/11/how-to-use-gdb-to-revert-engineering-the-ip-camera-firmware/

Then to my surprise the command “arm-linux-gnueabihf-gdb” failed to run reporting that didn’t find “libncurses5.so.5” lib.

Then I installed the right package:

$ sudo apt install libncurses5

And the eclipse worked to debug.

It is strange because I already had the libncurses5-dev package installed.

2 thoughts on “Eclipse remote gdbserver debug error

  1. Hi acassis

    Depending on Linux Distribution and Version, you may also need to install libncurses5 beside libncurses5-dev package to make debugging with Eclispe work.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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