02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

linenum(4) linenum(4)<br />

NAME<br />

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

SYNOPSIS<br />

finclude <br />

DESCRIPTION<br />

The C compiler generates an entry in the object file for each C<br />

source line on which a breakpoint is possible (when invoked with<br />

the -g option; see cc(I». Users can then reference line numbers<br />

when using the appropriate software test system (see sdb(1».<br />

The structure of these line number entries appears below.<br />

1<br />

struct lineno<br />

{<br />

union<br />

long l_symndx ;<br />

long lyaddr ;<br />

1 addr<br />

unsigned short l_lnno ;<br />

} ;<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<br />

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

l_lnno is non-zero, and lyaddr is the physical address<br />

of the code for the referenced line. Thus the overall structure<br />

is the following:<br />

1 addr 1 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 />

February, 1990<br />

RevisionC

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

Saved successfully!

Ooh no, something went wrong!