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

System Information<br />

Table 5-4 shows the WindSh commands that display information from the symbol<br />

table, from the target system, and from the shell itself.<br />

Table 5-4<br />

WindSh Commands for System Information<br />

Call<br />

devs( )<br />

lkup( )<br />

lkAddr( )<br />

Description<br />

List all devices known on the target system.<br />

List symbols from symbol table.<br />

List symbols whose values are near a specified value.<br />

d( ) Display target memory. You can specify a starting address, size of<br />

memory units, and number of units to display.<br />

l()<br />

printErrno()<br />

version( )<br />

cd( )<br />

ls( )<br />

pwd()<br />

help( )<br />

Disassemble and display a specified number of instructions.<br />

Describe the most recent error status value.<br />

Print VxWorks version information.<br />

Change the host working directory (no effect on target).<br />

List files in host working directory.<br />

Display the current host working directory.<br />

Display a summary of selected shell commands.<br />

h( ) Display up to 20 lines of command history.<br />

shellHistory()<br />

shellPromptSet( )<br />

printLogo( )<br />

Set or display shell history.<br />

Change the C-interpreter shell prompt.<br />

Display the <strong>Tornado</strong> shell logo.<br />

The lkup( )command takes a regular expression as its argument, and looks up all<br />

symbols containing strings that match. In the simplest case, you can specify a<br />

substring to see any symbols containing that string. For example, to display a list<br />

containing routines and declared variables with names containing the string dsm,<br />

do the following:<br />

160

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

Saved successfully!

Ooh no, something went wrong!