AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

LINENUM ( 4) LINENUM ( 4) NAME linenum - line number entries in a common object file SYNOPSIS #include DESCRIPTION Compilers based on pee generate an entry in the object file for each C source line on which a breakpoint is possible (when invoked with the -g option; see ee(1)). Users can then reference line numbers when using the appropriate software test system (see sdb (1 )). The structure of these line number entries appears below. 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: SEE ALSO cc(1), sdb(1), a.out(4). l_addr l_lnno function symtab index 0 physical address line physical address line function symtab index 0 physical address line physical address line - 1 -

LINENUM ( 4) LINENUM ( 4)<br />

NAME<br />

linenum - line number entries in a common object file<br />

SYNOPSIS<br />

#include <br />

DESCRIPTION<br />

Compilers based on pee generate an entry in the object file for<br />

each C source line on which a breakpoint is possible (when<br />

invoked with the -g option; see ee(1)). <strong>Users</strong> can then reference<br />

line numbers when using the appropriate software test system (see<br />

sdb (1 )). The structure of these line number entries appears below.<br />

struct lineno<br />

{<br />

} ;<br />

UniOn<br />

{<br />

long l_symndx ;<br />

long l_paddr ;<br />

}<br />

l_addr ;<br />

unsigned short l_lnno ;<br />

Numbering starts with one for each function. The initial line<br />

number entry for a function has l_lnno equal to zero, and the symbol<br />

table index of the function's entry is in l_symndx . Otherwise,<br />

l_lnno is non-zero, and l_paddr is the physical address of the code<br />

for the referenced line. Thus the overall structure is the following:<br />

SEE ALSO<br />

cc(1), sdb(1), a.out(4).<br />

l_addr l_lnno<br />

function symtab index 0<br />

physical address line<br />

physical address line<br />

function symtab index 0<br />

physical address line<br />

physical address line<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!