📄 c-shell6.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Shell </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-shell.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-shell5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="100857">6.6 Object Module Load Path</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="100859"> </a>In order to download an object module dynamically to the target, both WindSh and the target server must be able to locate the file. If path naming conventions are different between WindSh and the target server, the two systems may both have access to the file, but mounted with different path names. This situation arises often in environments where UNIX and Windows systems are networked together, because the path naming convention is different: the UNIX <b class="file">/usr/fred/applic.o</b> may well correspond to the Windows <b class="file">n:\fred\applic.o</b>. If you encounter this problem, check to be sure the <b class="symbol_UC">LD_SEND_MODULES</b> variable of <b class="tclProc">shConfig</b> is set to "on" or use the <b class="symbol_UC">LD_PATH</b> facility to tell the target server about the path known to the shell.</p></dl></dl><h4 class="EntityTitle"><a name="94521"><font face="Helvetica, sans-serif" size="-1" class="sans">Example 6-3: Loading a Module: Alternate Path Names</font></a></h4><dl class="margin"><dl class="margin"><dl class="margin"><dd><pre class="Code2"><b><a name="94522"></b><tt class="output">-></tt><b> ld < /usr/david/project/test/test.o </b><tt class="output">Loading /usr/david/project/test/test.o WTX Error 0x2 (no such file or directory) value = -1 = 0xffffffff -></tt><b> ?shConfig LD_PATH "/usr/david/project/test;C:\project\test" </b><tt class="output">-></tt><b> ld < test.o </b><tt class="output">Loading C:\project\test\test.o value = 17427840 = 0x109ed80</tt><b></a></b></pre></dl></dl><dl class="margin"><dd><p class="Body"><a name="94514"> </a>For more information on using <b class="symbol_UC">LD_PATH </b>and other <b class="tclProc">shConfig</b> facilities, see <a href="c-shell2.html#94172"><i class="title">WindSh Environment Variables</i></a>. </p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/caution.gif"></td><td><hr><div class="CalloutCell"><a name="99381"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">CAUTION: </font></b></a>If you call <b class="routine"><i class="routine">ld</i></b><b>( )</b> with an explicit argument list, any instances of the backslash character in Windows paths must be doubled: <b class="operator">"</b><b class="file">n:\\fred\\applic.o</b><b class="operator">"</b>. If you supply the module name with the redirection symbol instead, no double backslashes are necessary.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="86590"> </a>Certain WindSh commands and browser utilities imply dynamic downloads of auxiliary target-resident code. These subroutines fail in situations where the shell and target-server view of the file system is incompatible. To get around this problem, download the required routines explicitly from the host where the target server is running (or configure the routines statically into the VxWorks image). Once the supporting routines are on the target, any host can use the corresponding shell and browser utilities. <a href="c-shell6.html#86597">Table 6-16</a> lists the affected utilities. The object modules are in <b class="file">wind\target\lib\obj</b><i class="textVariable">cputype</i><b class="file">gnuvx</b>.<p class="table"><h4 class="EntityTitle"><a name="86597"><font face="Helvetica, sans-serif" size="-1" class="sans">Table 6-16: Shell and Browser Utilities with Target-Resident Components</font></a></h4><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="86601"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Utility</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="86603"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Supporting Module</font></b></div></th><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="86611"> </a><b class="routine"><i class="routine">repeat</i></b><b>( )</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="86613"> </a><b class="file">repeatHost.o</b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="86617"> </a><b class="routine"><i class="routine">period</i></b><b>( )</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="86619"> </a><b class="file">periodHost.o</b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="86623"> </a><b class="routine"><i class="routine">tt</i></b><b>( )</b></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="86625"> </a><b class="file">trcLib.o</b>, <br><b class="file">ttHostLib.o</b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBody"><a name="86628"> </a>Browser <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">spy</font></b> panel</div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="86631"> </a><b class="file">spyLib.o</b></div></td><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-shell.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-shell5.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell7.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -