7. Debug¶
This chapter describes the Code Composer Studio™ debug environment. It describes how to create, manage and launch the debugger, and also the features available for debugging the environment.
- 7.1. Debug Overview
 - 7.2. Configuring the Debugger
 - 7.3. Launching a debug session
 - 7.4. Debugging the application
- 7.4.1. After Launch
 - 7.4.2. Debug View
 - 7.4.3. Registers View
 - 7.4.4. Disassembly View
 - 7.4.5. Memory View
 - 7.4.6. GEL Files View
 - 7.4.7. Debug Output View
 - 7.4.8. GEL Output View
 - 7.4.9. Debug Console View
 - 7.4.10. Serial Console View
 - 7.4.11. Scripting Console View
 - 7.4.12. RTOS Objects View
 - 7.4.13. Modules View
 - 7.4.14. Connected Targets View
 - 7.4.15. Graph View
 - 7.4.16. Breakpoints
 - 7.4.17. Profile Clock
 - 7.4.18. Memory Map
 - 7.4.19. Data File Formats
 
 - 7.5. Advanced Debugging Topics
 - 7.6. Trace
 - 7.7. The General Extension Language (GEL)
- 7.7.1. GEL Grammar
- 7.7.1.1. GEL Function Definition
 - 7.7.1.2. GEL Function Parameters
 - 7.7.1.3. Calling GEL Functions
 - 7.7.1.4. Local Variables for Functions
 - 7.7.1.5. Function Recursion
 - 7.7.1.6. GEL return Statement
 - 7.7.1.7. GEL if and if-else Statements
 - 7.7.1.8. GEL for Statement
 - 7.7.1.9. GEL while and do-while Statements
 - 7.7.1.10. GEL break Statement
 - 7.7.1.11. File I/O Functions
 - 7.7.1.12. Hardware Breakpoints
 - 7.7.1.13. GEL Comments
 - 7.7.1.14. GEL Preprocessing Statements
 - 7.7.1.15. Conditional Breakpoints
 - 7.7.1.16. C++ Limitations within GEL Expressions
 - 7.7.1.17. C++ Support within GEL Expressions
 - 7.7.1.18. GEL Expression Evaluation
 - 7.7.1.19. Format Specifiers
 - 7.7.1.20. Global Variables for GEL Functions
 - 7.7.1.21. GEL Namespace
 - 7.7.1.22. Defining Shared Memory
 - 7.7.1.23. Register access
 - 7.7.1.24. GEL Debugging
 
 - 7.7.2. Built-in GEL Functions
 - 7.7.3. GEL Macros
 - 7.7.4. Loading and Unloading GEL Files
 - 7.7.5. Adding GEL Files to a Target Configuration
 - 7.7.6. Moving GEL Initialization to Production Code
 - 7.7.7. Adding GEL Functions to the GEL Menu Using Keywords
 - 7.7.8. GEL Functions: Alphabetical List
- 7.7.8.1. GEL_AddInputFile()
 - 7.7.8.2. GEL_AddOutputFile()
 - 7.7.8.3. GEL_AdvancedReset()
 - 7.7.8.4. GEL_AsmStepInto()
 - 7.7.8.5. GEL_AsmStepOver()
 - 7.7.8.6. GEL_BreakPtAdd()
 - 7.7.8.7. GEL_BreakPtDel()
 - 7.7.8.8. GEL_BreakPtDisable
 - 7.7.8.9. GEL_BreakPtReset()
 - 7.7.8.10. GEL_CancelTimer
 - 7.7.8.11. GEL_Connect
 - 7.7.8.12. GEL_Dialog()
 - 7.7.8.13. GEL_DisableFileOutput()
 - 7.7.8.14. GEL_DisableRealtime()
 - 7.7.8.15. GEL_Disconnect
 - 7.7.8.16. GEL_EnableClock()
 - 7.7.8.17. GEL_EnableFileOutput()
 - 7.7.8.18. GEL_EnableRealtime()
 - 7.7.8.19. GEL_EnableZeroFill
 - 7.7.8.20. GEL_EvalOnTarget()
 - 7.7.8.21. GEL_GetBoolDebugProperty
 - 7.7.8.22. GEL_GetBoolDriverProperty
 - 7.7.8.23. GEL_GetBoolTargetDbProperty
 - 7.7.8.24. GEL_GetNumericDebugProperty
 - 7.7.8.25. GEL_GetNumericDriverProperty
 - 7.7.8.26. GEL_GetNumericTargetDbProperty
 - 7.7.8.27. GEL_GetStringDebugProperty
 - 7.7.8.28. GEL_GetStringDriverProperty
 - 7.7.8.29. GEL_GetStringTargetDbProperty
 - 7.7.8.30. GEL_Go()
 - 7.7.8.31. GEL_Halt()
 - 7.7.8.32. GEL_HandleTargetError()
 - 7.7.8.33. GEL_HWBreakPtAdd()
 - 7.7.8.34. GEL_HWBreakPtDel()
 - 7.7.8.35. GEL_HWBreakPtDisable
 - 7.7.8.36. GEL_HWBreakPtReset()
 - 7.7.8.37. GEL_IsConnected
 - 7.7.8.38. GEL_IsHalted
 - 7.7.8.39. GEL_IsInRealtimeMode
 - 7.7.8.40. GEL_IsResetSupported()
 - 7.7.8.41. GEL_IsTimerSet()
 - 7.7.8.42. GEL_Load()
 - 7.7.8.43. GEL_LoadBin()
 - 7.7.8.44. GEL_LoadGel()
 - 7.7.8.45. GEL_LoadProgramOnly()
 - 7.7.8.46. GEL_MapAdd()
 - 7.7.8.47. GEL_MapAddStr()
 - 7.7.8.48. GEL_MapDelete()
 - 7.7.8.49. GEL_MapOff()
 - 7.7.8.50. GEL_MapOn()
 - 7.7.8.51. GEL_MapReset()
 - 7.7.8.52. GEL_MatchesConnection()
 - 7.7.8.53. GEL_MemoryFill()
 - 7.7.8.54. GEL_MemoryListSupportedTypes()
 - 7.7.8.55. GEL_MemoryLoad()
 - 7.7.8.56. GEL_MemoryLoadData()
 - 7.7.8.57. GEL_MemorySave()
 - 7.7.8.58. GEL_MemorySaveBin()
 - 7.7.8.59. GEL_MemorySaveCoff()
 - 7.7.8.60. GEL_MemorySaveData()
 - 7.7.8.61. GEL_MemorySaveHex()
 - 7.7.8.62. GEL_PatchAssembly()
 - 7.7.8.63. GEL_ProbePtAdd()
 - 7.7.8.64. GEL_ProbePtDel()
 - 7.7.8.65. GEL_ProbePtDisable
 - 7.7.8.66. GEL_ProbePtReset()
 - 7.7.8.67. GEL_ReConnect
 - 7.7.8.68. GEL_RefreshWindows
 - 7.7.8.69. GEL_Reload()
 - 7.7.8.70. GEL_RemoveDebugState
 - 7.7.8.71. GEL_RemoveInputFile()
 - 7.7.8.72. GEL_RemoveOutputFile()
 - 7.7.8.73. GEL_Reset()
 - 7.7.8.74. GEL_Restart()
 - 7.7.8.75. GEL_RestoreDebugState
 - 7.7.8.76. GEL_Run()
 - 7.7.8.77. GEL_RunF()
 - 7.7.8.78. GEL_SetBlockResetMode()
 - 7.7.8.79. GEL_SetBoolDebugProperty
 - 7.7.8.80. GEL_SetClockEvent
 - 7.7.8.81. GEL_SetNumericDebugProperty
 - 7.7.8.82. GEL_SetSemihostingMainArgs
 - 7.7.8.83. GEL_SetStringDebugProperty
 - 7.7.8.84. GEL_SetTimer
 - 7.7.8.85. GEL_SetWaitInResetMode()
 - 7.7.8.86. GEL_SrcStepInto()
 - 7.7.8.87. GEL_SrcStepOver()
 - 7.7.8.88. GEL_StepInto
 - 7.7.8.89. GEL_StepOut
 - 7.7.8.90. GEL_StepOver
 - 7.7.8.91. GEL_StrCat
 - 7.7.8.92. GEL_StrLen
 - 7.7.8.93. GEL_SubStr
 - 7.7.8.94. GEL_SymbolAdd()
 - 7.7.8.95. GEL_SymbolAddOffset()
 - 7.7.8.96. GEL_SymbolAddRel()
 - 7.7.8.97. GEL_SymbolDisable()
 - 7.7.8.98. GEL_SymbolEnable()
 - 7.7.8.99. GEL_SymbolHideSection()
 - 7.7.8.100. GEL_SymbolLoad()
 - 7.7.8.101. GEL_SymbolLoadOffset()
 - 7.7.8.102. GEL_SymbolLoadRel()
 - 7.7.8.103. GEL_SymbolRemove()
 - 7.7.8.104. GEL_SymbolShowSection()
 - 7.7.8.105. GEL_SyncHalt
 - 7.7.8.106. GEL_SyncRun
 - 7.7.8.107. GEL_SyncStepInto
 - 7.7.8.108. GEL_SyncStepOut
 - 7.7.8.109. GEL_SyncStepOver
 - 7.7.8.110. GEL_System()
 - 7.7.8.111. GEL_TargetTextOut()
 - 7.7.8.112. GEL_TextOut()
 - 7.7.8.113. GEL_Trace()
 - 7.7.8.114. GEL_UnloadAllGels()
 - 7.7.8.115. GEL_UnloadAllSymbols()
 - 7.7.8.116. GEL_UnloadGel()
 - 7.7.8.117. GEL_VerifyBinProgram()
 - 7.7.8.118. GEL_VerifyProgram()
 - 7.7.8.119. OnChildRunning()
 - 7.7.8.120. OnFileLoaded()
 - 7.7.8.121. OnHalt
 - 7.7.8.122. OnPreFileLoaded()
 - 7.7.8.123. OnPreReset()
 - 7.7.8.124. OnPreTargetConnect()
 - 7.7.8.125. OnReset()
 - 7.7.8.126. OnResetDetected()
 - 7.7.8.127. OnRestart()
 - 7.7.8.128. OnTargetConnect()
 
 
 - 7.7.1. GEL Grammar
 - 7.8. Scripting
 - 7.9. Legacy Scripting (DSS)
- 7.9.1. Prerequisites
 - 7.9.2. Environment Setup and Running a JavaScript
 - 7.9.3. Examples
 - 7.9.4. DSS API
 - 7.9.5. Target Configuration
 - 7.9.6. Exception Handling
 - 7.9.7. Using GEL
 - 7.9.8. Multiple Debug Sessions for Multi-core Debug
 - 7.9.9. Logging
 - 7.9.10. Other Supported Languages
 - 7.9.11. Download
 - 7.9.12. Training