csplus.get_source_line_address
|
This function gets address of a source line.
[Specification format]
csplus.get_source_line_address(session_id, source_file, line_number)
|
[Argument(s)]
|
|
session_id
|
This argument is ignored in this version.
|
source_file
|
The source file to get address from. Can be either file name or file path
If multiple load modules have been downloaded, set the parameter as “<load module name>$<file name>” to specify an additional load module.
Example : csplus.get_source_line_address(0, “loadmodule2.abs$main2.c”, 40)
|
line_number
|
The line number in the specified source file to get address at
|
[Return value]
The address of the source line at the specified line number in the specified source file
[Detailed description]
- | This function gets address of a source line. |
- | If the specified source line does not have address, None will be returned. |
[Example of use]
>>> csplus.get_source_line_address(0, "ccrx.c", 30)
1234
|