[ndnSIM] ndnSIM Digest, Vol 56, Issue 18

Marzieh Babaeianjelodar babaeim at clarkson.edu
Tue Jul 18 14:35:11 PDT 2017


Thank you very much Narges. This command is really useful in gdb for me.

> On Jul 18, 2017, at 4:14 PM, Narges Mehran <narges.mehran at gmail.com> wrote:
> 
> Hello Marzieh,
> 
> Hope you are fine.
> 
> I have a question. Do you have run-time error? If yes, you can use "where" in debug mode to find the place of you error and try to solve it recursively.
> 
> ./waf  --run MyNDNScenario --command-template="gdb %s"
> ...
>  >>run
> ...
> >>where
> ...
> 
> Regards,
> Narges
> 
>    1. Re: Debugging Strategy (Marzieh Babaeianjelodar)
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 17 Jul 2017 15:47:42 -0400
> From: Marzieh Babaeianjelodar <​​babaeim at clarkson.edu <mailto:babaeim at clarkson.edu>>
> To: "Spyridon (Spyros) Mastorakis" <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>>
> Cc: ndnsim at lists.cs.ucla.edu <mailto:ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Debugging Strategy
> Message-ID: <9050CAE2-B579-4DD0-AB7A-EC00BF5A27CA at clarkson.edu <mailto:9050CAE2-B579-4DD0-AB7A-EC00BF5A27CA at clarkson.edu>>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
> When I debug with gdb it does not break into the function inside the strategy file (afterReceiveInterest), and so I am unable to find the error inside that function.
> 
> There is the following attached file for when i run the debugger.
> 
> 
> 
> Best Regards,
> Marzieh
> 
> > On Jul 13, 2017, at 9:16 PM, Marzieh Babaeianjelodar <babaeim at clarkson.edu <mailto:babaeim at clarkson.edu>> wrote:
> >
> > Thanks, I was looking for gdb but I didn't know how to run it.
> > Now I found the code.
> >
> > ~Marzieh
> >
> >> On Jul 13, 2017, at 8:57 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu> <mailto:mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>>> wrote:
> >>
> >> Hi,
> >>
> >> the way to do that is through a simulation scenario using this strategy. You run the scenario under gdb and set the appropriate breakpoints in the strategy code.
> >>
> >> Thanks,
> >>
> >> Spyridon (Spyros) Mastorakis
> >> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/> <http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>>
> >> Internet Research Laboratory
> >> Computer Science Department
> >> UCLA
> >>
> >>> On Jul 12, 2017, at 10:30 AM, Marzieh Babaeianjelodar <babaeim at clarkson.edu <mailto:babaeim at clarkson.edu> <mailto:babaeim at clarkson.edu <mailto:babaeim at clarkson.edu>>> wrote:
> >>>
> >>> Dear All,
> >>>
> >>> I coded my own strategy and it has a segmentation fault and I was wondering if I could use a debugger (gdb) to debug my strategy?
> >>>
> >>> Best Regards,
> >>> Marzieh
> >>
> >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170718/c50dabbc/attachment.html>


More information about the ndnSIM mailing list