|
|
#include <linenum.h>
struct lineno { union { long l_symndx ; long l_paddr ; } l_addr ; unsigned short l_lnno ; } ;Numbering starts with one for each function. The initial line number entry for a function has
l_lnno
equal to zero, and the symbol table index of the function's
entry is in l_symndx
. Otherwise, l_lnno
is non-zero, and
l_paddr
is the physical address of the code for the referenced line.
Thus the overall structure is the following:
l_addr l_lnnofunction symtab index 0 physical address line physical address line ...
function symtab index 0 physical address line physical address line ...