1. HOME
  2. FAQ
  3.  vxWorks シェルコマンド小技集

FAQ

 vxWorks シェルコマンド小技集

vxWorks コマンドシェル小技集

タスク情報の表示

-> iNAMEENTRY TIDPRISTATUSPCSPERRNODELAY
tExcTaskexcTask1dfeaa80PEND1aff301dfe9b800
tLogTasklogTask1dfc120 0PEND1aff30 1dfc04000
tShellshell1d8bde01READY18243c1d8ba5800
tRlogindrlogind1d931602PEND17cfc01d92d9000
tTelnetdtelnetd1d912202PEND17cfc01d910b000
tNetTasknetTask1dbe09050PEND17cfc01dbdfd000
tFtpdTask1476d41d8f9d855PEND17cfc0 1d8f88800

デバイスリストの表示

-> devs
drv name
  0 /null
  1 /tyCo/0
  2 /tyCo/1
  3 frc7v:
  4 /pty/rlogin.S
  5 /pty/rlogin.M
  6 /pty/telnet.S
  7 /pty/telnet.M

システム上のシンボルテーブルを表示

-> lkup "memShow"
memShow Init       0x00162110 text   (vxWorks.sym)
memShow         0x0016214c text   (vxWorks.sym)

メモリダンプの表示

-> d 0xffe00100
ffe00100: 4800 005d 4800 017d 436f 7079 7269 6768  *H..]H..}Copyrigh*
ffe00110: 7420 3139 3834 2d31 3939 3520 5769 6e64  *t 1984-1995 Wind*
ffe00120: 2052 6976 6572 2053 7973 7465 6d73 2c20  * River Systems, *
ffe00130: 496e 632e 436f 7079 7269 6768 7420 3139  *Inc.Copyright 19*
ffe00140: 3936 2d31 3939 3820 464f 5243 4520 434f  *96-1998 FORCE CO*
ffe00150: 4d50 5554 4552 5320 476d 6248 7f9f 42a6  *MPUTERS GmbH..B.*

逆アセンブルの表示

-> l RxTest
          RxTest:
0x10e3cc 9421ffe8    stwu r1,-24(r1)
0x10e3d0 7c0802a6    mfspr r0,LR
0x10e3d4 93c10010    stw r30,16(r1)
0x10e3d8 93e10014    stw r31,20(r1)
0x10e3dc 9001001c    stw r0,28(r1)
0x10e3e0 7c7e1b78    or r30,r3,r3
0x10e3e4 38600001    li r3,1
0x10e3e8 3c800011    lis r4,17
0x10e3ec 38848c4c    addi r4,r4,-29620
0x10e3f0 3d20001c    lis r9,28

スクリプトの実行

-> <script
printf("Hello.\n")
Hello.
マイクロチップ3