I have installed GDB using apt-get. The host and targets are the same. I want to use it for cross debugging. Could anyone help out how to achieve this ?
Thanks in advance,
I have installed GDB using apt-get. The host and targets are the same. I want to use it for cross debugging. Could anyone help out how to achieve this ?
Thanks in advance,
You should install gdb multiarch in ubuntu and gdbserver in the arm-linux target, that will allow you to remote debug programs in the arm target.
Example:
In the target:
target> gdbserver :2345 emacs foo.txt
In the ubuntu machine, start gdb and execute the command:
(gdb) target remote the-target:2345
See the manual for more details: Using the gdbserver program