How do I use GDB (GNU Debugger) from the UC Linux tool chain?
An introduction to the GDB debugger Most flavors of Linux come with the GDB debugger. GDB lets you see the internal structure of a program, print out variable values, set breakpoints and single step through source code. It is an extremely powerful tool for fixing problems in the program code. In this Technical FAQs, we will show how GDB works with UC so that you can use GDB to debug programs written in C and C++. 1. GDB System Diagram: 2.Installation Procedure: PC RH Linux 7.3/8.0: 1. Compile with ¡Vggdb (makefile) 2. Start DDD Tool with GDB Client 3. Target remote to GDB Server UC: 1. Start GDB Debug Server 3. Example: Hello-debug PC side (192.168.12.188) 1. Install Tool-chain first. Note: requires more than 350 MB of available disk space 2. Compile hello.c with the ¡Vggdb option, creates hello-debug. 3. Use the following command to set read, write, and execute permissions for all users and all groups: # chmod +x hello-debug 4.Upload hello-debug to the UC unit. UC side (192.168.12.227