Tcl-scripting the Debugger Shell

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Tcl-scripting the Debugger Shell

ソリューションへジャンプ
1,079件の閲覧回数
konrada
Contributor IV

Hello all,

 

I've read Erich Styger's article http://blogs.freescale.com/2012/04/27/scripting-welcome-to-the-debugger-shell/ on the Debugger Shell. Apparently, the Debugger Shell is based on Tcl. 

 

Is there a way to read registers and memory values into Tcl variables so that I can write a script which automatically parses Kinetis exception stack traces and tells me the last known PC (7th register in exception stack frame on either SP_MAIN or SP_PROCESS)?  

ラベル(1)
0 件の賞賛
返信
1 解決策
595件の閲覧回数
CrasyCat
Specialist III

Hello

 

  Here I would use standard Evaluation & Substitutions feature from TCL.

 

  For example to store the value of a register named d3, I would use following notation

      set temp [reg d3]

 

  Check following Tutorial for more information on standard TCL language.

      http://www.tcl.tk/man/tcl/tutorial/tcltutorial.html

 

CodeWarrior manual only list the CodeWarrior specific TCL commands. For information on standard TCL commands and features, please refer to www.tcl.tk.

 

There are a couple of other location on the web where you can find more info on TCL language.

 

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
596件の閲覧回数
CrasyCat
Specialist III

Hello

 

  Here I would use standard Evaluation & Substitutions feature from TCL.

 

  For example to store the value of a register named d3, I would use following notation

      set temp [reg d3]

 

  Check following Tutorial for more information on standard TCL language.

      http://www.tcl.tk/man/tcl/tutorial/tcltutorial.html

 

CodeWarrior manual only list the CodeWarrior specific TCL commands. For information on standard TCL commands and features, please refer to www.tcl.tk.

 

There are a couple of other location on the web where you can find more info on TCL language.

 

CrasyCat

0 件の賞賛
返信
595件の閲覧回数
konrada
Contributor IV

Thanks. I just hadn't imagined that the commands both print and return a value.

0 件の賞賛
返信