dear Dalia, you must install the GDB packages with the Cygwin update utility first. Then, in the xwin console, type "gdb ns": you will get some infos about gdb. Now, by typing: "run your_tcl_script.tcl" you will get debug information about the execution of your script. Cheers, Alessandra
>----Messaggio originale---- >Da: [email protected] >Data: 23/07/2013 2.13 >A: "[email protected]"<[email protected]> >Ogg: [ns] How to debug c++ code under cygwin? > > >Hello ns-2 users,I've modified the DSR protocol to improve its routing scheme.. no errors appeared through the compiling process , but i got a " Segmentation fault (core dumped)" error when i tried to run a TCL script with DSR as a routing protocol..I know, there is something wrong in my code.So, i want to know, how can i debug my C++ code? and what is the easiest way to do this?. I'm using Cygwin as a Linux emulation tool under Win.7., i searched Cygwin libraries but i didn't find the GDB debugger. How can i install it? and how can i use it?Thanks, > >Dalia. > > > >
