GDB Debugging Problem for DE1-SoC Running Newest Ubuntu from Terasic


Hello all,

I’m having trouble to debug my DE1-SoC board that runs on Linux, using Eclipse DS-5.
My host machine is a Linux Mint 18.
Here is the error I got from Eclipse:

Process /home/ubuntu/test created; pid = 5796
Listening on port 5000
Debug session has been started, connecting to gdbserver
Remote debugging from host
Remote side has terminated connection. GDBserver will reopen the connection.
Listening on port 5000

However, if I run the gdbserver manually on DE1-SoC, and try to debug it manually with gdb-multiarch in my host machine, it seems just running fine. So it must be the problem with target architecture chosen. I was trying to find on how to substitute debug mode to gdb-multiarch in Eclipse but I didn’t find anything.

The other thing I realized, Eclipse DS-5 has internal gdb program. I verify this by completely uninstall my host gdb program but Eclipse can still run gdb. But there is no option to change its internal gdb program.

Do you know what the problem is and how to fix it?

Thank you.