02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C<br />

<strong>Tornado</strong> Tools Reference<br />

DESCRIPTION<br />

EXAMPLE<br />

RETURNS<br />

SEE ALSO<br />

This command loads an object module from a file or from standard input. The object<br />

module may be in any format for which the target server has an OMF reader. External<br />

references in the module are resolved during loading. The syms parameter determines<br />

how symbols are loaded; possible values are:<br />

0 - Add global symbols to the system symbol table.<br />

1 - Add global and local symbols to the system symbol table.<br />

-1 - Add no symbols to the system symbol table.<br />

The second parameter noOp is present for compatibility with the target-resident version of<br />

ld( ), but is not used by this implementation.<br />

During load operation (progress indicator moving), a CTRL+C call cancels the current<br />

load, and unloads the module.<br />

Errors during loading (e.g., externals undefined, too many symbols, etc.) are ignored.<br />

The normal way of using ld() is to load all symbols (syms = 1) during debugging and to<br />

load only global symbols later.<br />

The following example loads test.o with all symbols:<br />

-> ld 1,0,"/usr/someone/devt/test.o"<br />

MODULE_ID, or NULL if there are too many symbols, the object file format is invalid, or<br />

there is an error reading the file.<br />

windsh, <strong>Tornado</strong> User’s Guide: Shell<br />

C<br />

lkAddr( )<br />

NAME<br />

lkAddr() – list symbols whose values are near a specified value<br />

SYNOPSIS<br />

DESCRIPTION<br />

void lkAddr<br />

(<br />

unsigned int addr /* address around which to look */<br />

)<br />

This command lists the symbols in the system symbol table that are near a specified value.<br />

The symbols that are displayed include:<br />

– symbols whose values are immediately less than the specified value<br />

– symbols with the specified value<br />

– succeeding symbols, until at least 12 symbols have been displayed<br />

397

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

Saved successfully!

Ooh no, something went wrong!