The ns-3 Network Simulator Project
Print the data type of the variables in star.cc using gdb (GNU Debugger)
Print the data type of variables used in a C++ program ‘star.cc’ using gdb (GNU Debugger). The program star.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 star.cc from examples/tcp to scratch
- Configure and build ns-3.
- Execute command: ./waf shell
- Execute command: gdb build/scratch/star
- Print the data type of variables: nSpokes and port using gdb
Provide the snapshots at each step for evaluation of the completed task.
You can refer to the video for introduction to gdb
Reference to gdb commands
Task tags
Students who completed this task
Parth Pratim, Asanali, Victor Hu, sikfeng, Parth Pandya, Phyxkal, bartekche, FelenAmvrosiy