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

-> lkup "dsm"<br />

_dsmData 0x00049d08 text (vxWorks)<br />

_dsmNbytes 0x00049d76 text (vxWorks)<br />

_dsmInst 0x00049d28 text (vxWorks)<br />

mydsm 0x003c6510 bss (vxWorks)<br />

Case is significant, but position is not (mydsm is shown, but myDsm would not<br />

be). To explicitly write a search that would match either mydsm or myDsm, you<br />

could write the following:<br />

5<br />

-> lkup "[dD]sm"<br />

Regular-expression searches of the symbol table can be as simple or elaborate as<br />

required. For example, the following simple regular expression displays the names<br />

of three internal VxWorks semaphore functions:<br />

-> lkup "sem.Take"<br />

_semBTake 0x0002aeec text (vxWorks)<br />

_semCTake 0x0002b268 text (vxWorks)<br />

_semMTake 0x0002bc48 text (vxWorks)<br />

value = 0 = 0x0<br />

Another information command is a symbolic disassembler, l( ). The command<br />

syntax is:<br />

l [adr[, n]]<br />

This command lists n disassembled instructions, starting at adr. If n is 0 or not<br />

given, the n from a previous l( )or the default value (10) is used. If adr is 0, l( )starts<br />

from where the previous l( )stopped, or from where an exception occurred (if there<br />

was an exception trap or a breakpoint since the last l( ) command).<br />

The disassembler uses any symbols that are in the symbol table. If an instruction<br />

whose address corresponds to a symbol is disassembled (the beginning of a<br />

routine, for instance), the symbol is shown as a label in the address field. Symbols<br />

are also used in the operand field. The following is an example of disassembled<br />

code for an MC680x0 target:<br />

-> l printf<br />

_printf<br />

00033bce 4856 PEA (A6)<br />

00033bd0 2c4f MOVEA .L A7,A6<br />

00033bd2 4878 0001 PEA 0x1<br />

00033bd6 4879 0003 460e PEA _fioFormatV + 0x780<br />

00033bdc 486e 000c PEA (0xc,A6)<br />

00033be0 2f2e 0008 MOVE .L (0x8,A6),-(A7)<br />

00033be4 6100 02a8 BSR _fioFormatV<br />

00033be8 4e5e UNLK A6<br />

00033bea 4e75<br />

RTS<br />

161

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

Saved successfully!

Ooh no, something went wrong!