[ns] Can anyone tell me how to debug ns2 2.33 using gdb? No successful examples could have been googled yet.
Sidney Doria
ssdoria at gmail.com
Sun Dec 21 21:25:16 PST 2008
To debug I suggest you use Eclipse and gdb;
You must open the entire simulator in a project in eclipse.
details are in here:
http://nsnam.isi.edu/nsnam/index.php/Developer_Information#Development_with_Eclipse
Turn on symbols generation in the Makefile (don't forget this or you
will receive a no symbols error).
use
CCOPT = -g
To debug oTCL code, I recommend Pedro Estrela's site. You'll find all
about oTCL debugging.
Sidney Doria
UFCG / BRAZIL
2008/12/21 matt Wood <withhighprob at gmail.com>:
>
> Dear friends,
> I've read the ns-doc chap24 and chap28, and followed the
> instructions (Q3) found in http://web.syr.edu/~dchen02/FAQ.txt, but
> when I try to debug using '$gdb ns' it says: no debugging symbols
> found.
>
> Same questions can be found in the mail-list but they still
> remain unresolved. Please tell me if this 2.33-allinone can be
> debugged by gdb. And if it is not, what debugging method can I use if
> I want to add a new MAC protocol?
>
> Thank you in advance.
>
> Yours sincerely,
> Matthew Wood
>
>
--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil
"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)
More information about the Ns-users
mailing list