Download Microcross i.MX GNU X
Transcript
Contents 4.9.5 The C Runtime (crt0) .................................................................................................................................... 57 4.10 Object Translation (ELF to Binary, SREC, etc.)............................................................................... 57 4.11 Creating/Updating Libraries ............................................................................................................. 58 4.12 GNU Libraries .................................................................................................................................. 59 4.13 Instruction Set Simulator (ISS) Options ........................................................................................... 59 SECTION 5. HOW TO USE COMMAND LINE GDB ................................................................60 5.1 Summary of GDB, the GNU Debugger.............................................................................................. 60 5.1.1 5.1.2 5.1.3 5.1.4 GDB as Free Software ................................................................................................................................. 60 Requirements of GDB .................................................................................................................................. 60 Startup GDB ................................................................................................................................................. 60 Startup of GDB with DDD ............................................................................................................................. 61 5.2 GDB Comprehensive Quick Reference ............................................................................................. 62 Table 5.1. Essential Commands............................................................................................................................ 62 Table 5.2. Starting GDB......................................................................................................................................... 63 Table 5.3. Stopping GDB....................................................................................................................................... 63 Table 5.4. Getting Help.......................................................................................................................................... 63 Table 5.5. Executing your Program ....................................................................................................................... 63 Table 5.6. Shell Commands .................................................................................................................................. 63 Table 5.7. Breakpoints and Watchpoints............................................................................................................... 63 Table 5.8. Program Stack ...................................................................................................................................... 64 Table 5.9. Execution Control ................................................................................................................................. 64 Table 5.10. Display ................................................................................................................................................ 65 Table 5.11. Automatic Display............................................................................................................................... 65 Table 5.12. Expressions ........................................................................................................................................ 65 Table 5.13. Symbol Table...................................................................................................................................... 66 Table 5.14. GDB Scripts ........................................................................................................................................ 66 Table 5.15. Signals ................................................................................................................................................ 66 Table 5.16. Debugging Targets ............................................................................................................................. 66 Table 5.17. Controlling GDB.................................................................................................................................. 67 Table 5.18. Working Files ...................................................................................................................................... 67 Table 5.19. Source Files........................................................................................................................................ 68 SECTION 6. HOW TO USE VISUAL GDB DEBUGGER..........................................................69 6.1 Using Visual GDB Debugger ............................................................................................................. 69 6.2 Visual GDB, An Alternative Interface to Command Line .................................................................. 69 6.3 Using the Mouse in the Source Window............................................................................................ 74 6.4 Left column functionality for the Source Window............................................................................... 75 6.5 Right Column Functionality for the Source Window .......................................................................... 76 i.MX GNU X-Tools User Guide ■ v