Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 Driver SRCMAP Preconfigured Driver Library Drvrt32.lib |
Driver SRCMAPThe MAP file driver can extract source code positions from line number entries in a MAP file generated by the Microsoft linker (linker option /MAPINFO:LINES). Function RTKLoadSymbols will accept .MAP files to read the required information. The driver must know the starting address of the code segment. This value must be assigned to global variable TDSCodeSegmentBase as in the following example: #ifdef __cplusplus extern "C" UINT TDSCodeSegmentBase; #else extern UINT TDSCodeSegmentBase; #endif ... const RTAppSection * pSection = RTLocateSection(1, RT_ST_APPCODE, ".text"); TDSCodeSegmentBase = pSection->SectionAddr; Requirements: Microsoft C++ 6.0, 7.0, or 7.1, C/C++ run-time system, ANSI C file I/O.
|