Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 Driver SRCTDS Preconfigured Driver Library Drvrt32.lib |
Driver SRCTDSThe TDS (Turbo Debugger Symbols) driver can extract source code positions from symbol tables generated by Borland compilers or RTTarget-32's RTLoc. Function RTKLoadSymbols will accept .EXE files and .TDS files to read the required information. For Microsoft compilers, 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: RTLoc option -g+, C/C++ run-time system, ANSI C file I/O.
|