-
In order to debug TCL files you should use tcl-deug. In order
to debug the .cc files you need ddd (frontend for gdb).

Here is detailed web info on how to use both, from Pedro Vale Estela:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html

Also, at the ns web site there is some info on how to debug a TCL file
while executing a C++ and vice versa. Check:
http://www.isi.edu/nsnam/ns/ns-debugging.html

and especially the part "Mixing TCL and C debugging".

Hope that I've helped

-Fk

On 3/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> ---------- Forwarded message ----------
> From: shayma sinan <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Sat, 17 Mar 2007 03:39:06 +0000 (GMT)
> Subject: [ns] how to use "gdb" to debug an error in .tcl format file?
> hello ns-users,
>   i got this error (segmentation fault) while trying to run an example (
> simula.tcl) of fhmip peckage under ns2.28
>
>   -------------------------------------------------------------------
>   [EMAIL PROTECTED] example]# ns simula.tcl > 0
>   INITIALIZE THE LIST xListHead
>   Segmentation fault
>   -------------------------------------------------------------------
>
>   The "INITIALIZE THE LIST xListHead" is coming from channel.cc (i didn't
> modify this file as i modified others to use fhmip)
>
>   i don't know how to find the crash that cause the error, so can anybody
> guide me how to use "gdb" comand? should it be applied to simula.tcl or
> channel.cc? or others?
>
>   waiting for a reply
>
>   thanks in advance
>
>   best regards
>   Shayma
>
>
>
>
>
-- 
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

Automation & Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece
----------------------------------------------

Reply via email to