Return adress line information

The lineinfo provides a routine that reads the debug information of an executable (if any exists) and returns source code information about this address. It works with Stabs debug information. Note that this unit is not thread-safe, and that its behaviour is undefined if multiple threads try to write a backtrace at the same time.

For DWARF debug information, the lnfodwrf unit must be used.

Return source line information about an address. GetLineInfo returns source line information about the address addr. It searches this information in the stabs debugging information found in the binary: If the file was compiled without debug information, nothing will be returned. Upon succesful retrieval of the debug information, True is returned, and the func parameter is filled with the name of the function in which the address is located. The source parameter contains the name of the file in which the function was implemented, and line contains the line number in the source file for addr. If no debug information is found, False is returned. True if the line information was found, False if not. Address to examine Name of function in which Addr resides. Source file in which Addr was implemented. Line number on which Addr was implemented.