<div dir="ltr">Hello all,<div>I'm trying to debug my code using gdb but for some reason it doesn't work. Can anyone help me point out the problem here.</div><div><br clear="all"><div>~/ndnSIM/ns-3$ ./waf --run RandomApplication --command-template="gdb --args %s <args>"<br>Waf: Entering directory `/home/smandapati/ndnSIM/ns-3/build'<br>Waf: Leaving directory `/home/smandapati/ndnSIM/ns-3/build'<br>Build commands will be stored in build/compile_commands.json<br>'build' finished successfully (2.042s)<br>Traceback (most recent call last):<br> File "/home/smandapati/ndnSIM/ns-3/wutils.py", line 133, in run_argv<br> WindowsError<br>NameError: name 'WindowsError' is not defined<br><br>During handling of the above exception, another exception occurred:<br><br>Traceback (most recent call last):<br> File "/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 119, in waf_entry_point<br> run_commands()<br> File "/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 184, in run_commands<br> run_command('shutdown')<br> File "/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py", line 173, in run_command<br> ctx.execute()<br> File "/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 85, in execute<br> self.recurse([os.path.dirname(g_module.root_path)])<br> File "/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py", line 126, in recurse<br> user_function(self)<br> File "/home/smandapati/ndnSIM/ns-3/wscript", line 1134, in shutdown<br> wutils.run_program(Options.options.run, env, wutils.get_command_template(env),<br> File "/home/smandapati/ndnSIM/ns-3/wutils.py", line 218, in run_program<br> return run_argv(execvec, env, cwd=cwd)<br> File "/home/smandapati/ndnSIM/ns-3/wutils.py", line 135, in run_argv<br> retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()<br> File "/usr/lib/python3.8/subprocess.py", line 854, in __init__<br> self._execute_child(args, executable, preexec_fn, close_fds,<br> File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child<br> raise child_exception_type(errno_num, err_msg, err_filename)<br>FileNotFoundError: [Errno 2] No such file or directory: 'gdb'<br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>
<p>Deakin University</p></div></div></div></div>