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.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

Table 5-1<br />

WindSh Environment Variables (Continued)<br />

Variable<br />

LD_COMMON_MATCH_ALL<br />

DSM_HEX_MOD<br />

Result<br />

Sets the loader behavior for common symbols. If it is<br />

set to on, the loader tries to match a common symbol<br />

with an existing one. If a symbol with the same name<br />

is already defined, the loader take its address.<br />

Otherwise, the loader creates a new entry. If set to off,<br />

the loader does not try to find an existing symbol. It<br />

creates an entry for each common symbol.<br />

Sets the disassembling “symbolic + offset” mode.<br />

When set to “off” the “symbolic + offset” address<br />

representation is turned on and addresses inside the<br />

disassembled instructions are given in terms of<br />

“symbol name + offset.” When set to “on” these<br />

addresses are given in hexadecimal.<br />

Because shConfig is a Tcl procedure, use the ? to move from the C interpreter to the<br />

Tcl interpreter. (See 5.7.2 Tcl: Calling Under C Control, p.200.)<br />

Example 5-1<br />

Using shConfig to Modify WindSh Behavior<br />

-> ?shConfig<br />

SH_GET_TASK_IO = on<br />

LD_CALL_XTORS = target<br />

LD_SEND_MODULES = on<br />

LD_PATH = C:/ProjectX/lib/objR4650gnutest/;C:/ProjectY/lib/objR4560gnuvx<br />

-> ?shConfig LD_CALL_XTORS on<br />

-> ?shConfig LD_CALL_XTORS<br />

LD_CALL_XTORS = on<br />

5.2.3 Invoking Built-In Shell Routines<br />

Some of the commands (or routines) that you can execute from the shell are built<br />

into the host shell, rather than running as function calls on the target. These<br />

facilities parallel interactive utilities that can be linked into VxWorks itself. By<br />

using the host commands, you minimize the impact on both target memory and<br />

performance.<br />

The following sections give summaries of the <strong>Tornado</strong> WindSh commands. For<br />

more detailed reference information, see the windsh reference entry (either online,<br />

or in D. <strong>Tornado</strong> Tools Reference).<br />

156

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

Saved successfully!

Ooh no, something went wrong!