The ns-3 Network Simulator Project
Set breakpoints at three places in tcp-bulk-send.cc and list all of them using gdb (GNU Debugger)
Set breakpoints at various places in a C++ program ‘tcp-bulk-send.cc’ using gdb (GNU Debugger). The program tcp-bulk-send.cc can be found in examples/tcp. Copy this program in scratch folder and follow the steps given below to start debugging a program using gdb in ns-3:
- Copy tcp-bulk-send.cc from examples/tcp to scratch.
- Configure and build ns-3.
- Execute command: ./waf shell.
- Execute command: gdb build/scratch/tcp-bulk-send.
- Set breakpoints at line numbers 79, 98 and 109.
- List all breakpoints.
- Delete all breakpoints.
- List all breakpoints again (Expected output: No breakpoints or watchpoints).
Provide the snapshots at each step for evaluation of the completed task.
You can refer to the video for introduction to gdb. One more video on gdb is here.
Reference to gdb commands.
Task tags
Students who completed this task
Parth Pratim, Asanali, Victor Hu, sikfeng, Parth Pandya, Phyxkal, bartekche, FelenAmvrosiy