Tcl-debug install guid

来源:互联网 发布:fifaol3数据库电脑版 编辑:程序博客网 时间:2024/05/21 07:14

Tcl-debug install guid

一、            How to configue and make Tcl-debug

★       Download tcl-degug-2.0

You can search from the Internet by yourself.

★       Dezip the tar.gz ball:

  Tar zxvf tcl-debug-2.0.tar.gz -C  ~/ns-allinone-2.35/

★       Cd tcl-debug-2.0

★       ./configure —prefix=/home/ubuntu/ns-allinone-2.35/ns-2.35   —with-tcl=/home/ubuntu/ns-allinone-2.35/tcl8.5.10/unix

the possible error message I have ever encountered.

tclUnixPort.h:没有那个文件或目录

solution:

cp ~/ns-allinone-2.35/tcl8.5.10/unix/tclUnixPort.h /home/ubuntu/ns-allino ne-2.35/tcl8.5.10/generic/

★       Make clean

★       Make

★       Cd ~/ns-allinone-2.35/ns-2.35

★       ./configure —with-tcldebug=/home/ubuntu/ns-allinone-2.35/tcl-debug-2.0

You will see below on the message:

.....

checking for libtcldbg... -L/home/share/ns-allinone-2.33/tcl-debug-2.0 -ltcldbg

checking dmalloc... not requested with —with-dmalloc

……

★       Then make clean & make

★       Done

二、            How to use GDB commands

s: step (go into the process)

n: step (don’t go into the process)

c: continue

r: Continue until the return from the process

h: help

u: Go to the previous scope

d: go to the low-level scope

b: set, clear or show the break point

三、            References:

1.       Vedio : http://v.youku.com/v_show/id_XMjM5NTI2ODA0.html?f=6396858

2.       More  vedio course which are useful to stuy NS2:, The 28th ,May update for ns2 learnig ad hoc network (vedio) -[Beginner,Intermediate]:http://www.baisi.net/thread-3017104-1-1.html

3.       NS2使用tcl脚本debug工具tcl-debug-2.0

http://www.linuxidc.com/Linux/2012-06/63761.htm

4.       安装tcl-debug:

 http://blog.csdn.net/flyuniverse_shell/article/details/5345736

原创粉丝点击