Hello, I need to debug the application running on mini2440 board and compiled GDB debugger. During compilation I got some linking errors that I fixed by editing the Makefile, but finally I got everything built. However, after putting everything to the board neither 'gdb' nor 'gdbserver' refused to run. After typing 'gdb' or './gdb' from its directory I got error, - '-sh: gdb: not found'. The same thing with gdbserver.... I used 'arm-linux' tools to build the sources. I also tried to build gdbserver separately with 'arm-none-linux-gnueabi'. After building and running it on the target board, I got error, - 'Illegal instruction'. During configuration nothing special was used, only --host=<target> Could please someone help me to resolve this problem.
GDB compilation and running
Hey, you should add cflags while configuring CFLAGS='-msoft-float -march=armv4t -mtune=arm920 -O0' and meybe the same CXXFLAGS I did it, and it works for me.
Many thanks ~~~ using these flags the compilation was done without any errors After deploying everything worked fine for me~~
Hi Artem Park, can you just make a tutorial how to install gdb on mini2440 board? I'm stuck with this for a long time. Thanks.