vxWorks コマンドシェル小技集
タスク情報の表示
-> iNAME | ENTRY | TID | PRI | STATUS | PC | SP | ERRNO | DELAY |
---|
tExcTask | excTask | 1dfeaa8 | 0 | PEND | 1aff30 | 1dfe9b8 | 0 | 0 |
tLogTask | logTask | 1dfc120 | 0 | PEND | 1aff30 | 1dfc040 | 0 | 0 |
tShell | shell | 1d8bde0 | 1 | READY | 18243c | 1d8ba58 | 0 | 0 |
tRlogind | rlogind | 1d93160 | 2 | PEND | 17cfc0 | 1d92d90 | 0 | 0 |
tTelnetd | telnetd | 1d91220 | 2 | PEND | 17cfc0 | 1d910b0 | 0 | 0 |
tNetTask | netTask | 1dbe090 | 50 | PEND | 17cfc0 | 1dbdfd0 | 0 | 0 |
tFtpdTask | 1476d4 | 1d8f9d8 | 55 | PEND | 17cfc0 | 1d8f888 | 0 | 0 |
デバイスリストの表示
-> 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.