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.

5<br />

Shell<br />

check to be sure the LD_SEND_MODULES variable of shConfig is set to “on” or use<br />

the LD_PATH facility to tell the target server about the path known to the shell.<br />

Example 5-3<br />

Loading a Module: Alternate Path Names<br />

Your target server is running on a UNIX host. You start a WindSh on a Windows<br />

host with LD_SEND_MODULES set to “off” (changed from the default). You want<br />

to download a file that resides on the Windows host called c:/tmp/test.o.<br />

5<br />

-> ld < c:/tmp/test.o<br />

Loading c:/tmp/test.o<br />

WTX Error 0x2 (no such file or directory)<br />

value = -1 = 0xffffffff<br />

This behavior is normal because the UNIX target server does not have access to this<br />

path. To correct the problem, reset LD_SEND_MODULES to “on” (the default).<br />

-> ?shConfig LD_SEND_MODULES on<br />

-> ld < c:/tmp/test.o<br />

Loading C:/tmp/test.o<br />

value = 17427840 = 0x109ed80<br />

For more information on using LD_SEND_MODULES, LD_PATH, and other<br />

shConfig facilities, see WindSh Environment Variables, p.155.<br />

Certain WindSh commands and browser utilities imply dynamic downloads of<br />

auxiliary target-resident code. These subroutines fail in situations where the shell<br />

and target-server view of the file system is incompatible. To get around this<br />

problem, download the required routines explicitly from the host where the target<br />

server is running (or configure the routines statically into the VxWorks image).<br />

Once the supporting routines are on the target, any host can use the corresponding<br />

shell and browser utilities. Table 5-16 lists the affected utilities. The object modules<br />

are in wind/target/lib/objcputypegnuvx.<br />

Table 5-16<br />

Shell and Browser Utilities with Target-Resident Components<br />

Utility<br />

repeat( )<br />

period( )<br />

tt( )<br />

Browser spy panel<br />

Supporting Module<br />

repeatHost.o<br />

periodHost.o<br />

trcLib.o,<br />

ttHostLib.o<br />

spyLib.o<br />

197

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

Saved successfully!

Ooh no, something went wrong!