GetAddressesFromSourceLine
PyList GetAddressesFromSourceLine(String fileName, long line)
Returns a list of the addresses that contain code implementing the source line from fileName
with line number line
. It returns None
if no matches are found. The reason this function returns a list is because the compiler may map a single sourceline into several addresses. This happens when using multiple statements on C line for example:
test();counter++;test2();
This also occurs when the compiler emits highly optimized code.