Renesas REJ10J1837-0100 Network Card User Manual


 
High-performance Embedded Workshop 17. Using the Debugger
REJ10J1837-0100 Rev.1.00 Nov. 16, 2008
261
17. Using the Debugger
This chapter describes the debugging operations and their related windows and dialog boxes.
See Chapter 1, Overview, for the fundamental concepts of the High-performance Embedded Workshop (High-
performance Embedded Workshop).
For details on the functions available with the debugging platform in use, refer to the user’s manual or help of the
emulator or simulator.
17.1 Preparations for debugging
This section describes the preparations for debugging your program. You will learn how to select and configure a
debugging platform with which to debug, how to load the user program, and what the debugger sessions are.
17.1.1 Compiling for debug
In
order to be able to debug your program at C/C++ source level, your C/C++ program must be compiled and linked
with the Debug option enabled. When this option is enabled, the compiler puts all the information necessary for
debugging your C/C++ code into the absolute file or management information file, which are usually called Debug
Object Files. When you create your project the initial setup will normally be configured for debug.
Notes:
Make sure you have the debug option enabled on your compiler and linker when you generate an object file for
debugging.
If your debug object file does not contain any debugging information (for example, the S-Record format), then
you can still load it into the debugging platform, but you will only be able to debug at the assembly language
level.
17.1.2 Selecting a debugging platform
Sel
ecting the debugging platform is very dependent on the installation of the High-performance Embedded Workshop.
If the High-performance Embedded Workshop has a toolchain installed then the application project generator will be
able to set up both the toolchain and the debugger targets simultaneously. This allows the options for targets and
toolchain to be matched closely so that no inconsistencies occur. If there is no toolchain installed you will only be able
to select debug-only project types. By default, High-performance Embedded Workshop will display a debug-only
project generation type for each CPU family in the New Project Workspace dialog box.