[ndnSIM] GDB not Found

sai gautams saigautam96 at gmail.com
Mon Jun 7 01:38:00 PDT 2021


Hello all,
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.

~/ndnSIM/ns-3$ ./waf --run RandomApplication --command-template="gdb --args
%s <args>"
Waf: Entering directory `/home/smandapati/ndnSIM/ns-3/build'
Waf: Leaving directory `/home/smandapati/ndnSIM/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (2.042s)
Traceback (most recent call last):
  File "/home/smandapati/ndnSIM/ns-3/wutils.py", line 133, in run_argv
    WindowsError
NameError: name 'WindowsError' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File
"/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py",
line 119, in waf_entry_point
    run_commands()
  File
"/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py",
line 184, in run_commands
    run_command('shutdown')
  File
"/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Scripting.py",
line 173, in run_command
    ctx.execute()
  File
"/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py",
line 85, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File
"/home/smandapati/ndnSIM/ns-3/.waf3-2.0.18-ff4ae9f5cc05353d3dc3aeff8854ae69/waflib/Context.py",
line 126, in recurse
    user_function(self)
  File "/home/smandapati/ndnSIM/ns-3/wscript", line 1134, in shutdown
    wutils.run_program(Options.options.run, env,
wutils.get_command_template(env),
  File "/home/smandapati/ndnSIM/ns-3/wutils.py", line 218, in run_program
    return run_argv(execvec, env, cwd=cwd)
  File "/home/smandapati/ndnSIM/ns-3/wutils.py", line 135, in run_argv
    retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gdb'
-- 

*Sai Gautam Mandapati*

Deakin University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210607/724f0147/attachment.html>


More information about the ndnSIM mailing list