Download Intel(R) C++ Software Development Tool Suite 2.0.1 Professional
Transcript
Intel(R) C++ Software Development Tool Suite 2.0.1 Professional, Release Notes
The Plug-in for system debugging provides two windows: One window shows information about the Linux kernel
threads, and the other window shows information about the loaded modules. The Plug-in for Linux system
debugging connects to the target via JTAG interface.
The Plug-in for application debugging contains a Monitor running on the Linux target and a GPL kernel driver. The
Plug-in for Linux application debugging connects to the target via serial interface.
Linux* 2.6 Kernel Support
The Linux* kernel 2.6 support is an add-on which permits to debug Linux* 2.6 kernel code and its modules.
Differences between Linux* 2.4 and Linux* 2.6 support
Process List information
The information displayed is the same as for the Kernel 2.4.
Relocation of the Debug information of the kernel modules
The Linux 2.4 support was consisting of reading the list of exported symbols to relocate the debug information of
the kernel modules.
This operation was time consuming and is no more necessary with the kernel 2.6.
To generate the debug information of the kernel module a temporary library needs to be created from the kernel
module (.ko file).
The procedure is the same as for the Linux 2.4:
arm-linux-ld –shared –g module.ko –o module.so
dwarf2bd –rel module.so –o module.bd
Note: Only the .text section can be relocated.
This has the following impact for the debugging capabilities:
●
●
Accessing global variables defined in a kernel module is not possible
Accessing code which uses a special link option can make the code inaccessible.
Example:
static void _init myinit()
{
...
}
Puts the function myinit into another section than .text
Workaround: The function myinit should call an auxiliary function which is in the .text section.
Example:
#ifdef
static
static
static
#else
static
#endif
{
...
}
DEBUG
void myinit_text();
void _init myinit() { myinit_text(); }
void myinit_text()
void _init myinit()
file:///C|/Documents and Settings/pdarling/Local Settings...Internet Files/OLK135/Product Release Notes_CS-023435.htm (16 of 47)11/8/2006 2:26:36 PM