[ns] Help needed about debugging!

Alex Hamidian alexh@telecom.lth.se
Wed Apr 24 06:45:07 2002


--------------010503040208050408080409
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi everyone,

has anyone tried to mix Tcl and C debugging?

I found on the homepage (debugging tips 
http://www.isi.edu/nsnam/ns/ns-debugging.html ) that I can use

call Tcl::instance().eval("debug 1")

,but how?



This is what I get:
(gdb) call Tcl::instance().eval("debug 1")
Cannot resolve method Tcl::eval to any overloaded instance

(gdb) call Tcl::instance_().eval("debug 1")
Cannot access memory at address 0x0


Any suggestions?
Hamidian


--------------010503040208050408080409
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Hi everyone,<br>
<br>
has anyone tried to mix Tcl and C debugging?<br>
<br>
     I found on the homepage (debugging tips <a href="http://www.isi.edu/nsnam/ns/ns-debugging.html">
 http://www.isi.edu/nsnam/ns/ns-debugging.html</a>
  ) that I can use           
<pre><b>call Tcl::instance().eval("debug 1")</b></pre>
     ,but how?<br>
<br>
<br>
<br>
  This is what I get:<br>
  (gdb) <b>call Tcl::instance().eval("debug 1")<br>
</b>Cannot resolve method Tcl::eval to any overloaded instance<br>
<br>
  (gdb) <b>call Tcl::instance_().eval("debug 1")</b><br>
  Cannot access memory at address 0x0<br>
<br>
<br>
  Any suggestions? <br>
   Hamidian<br>
<br>
</body>
</html>

--------------010503040208050408080409--