For some reason cuda-gdb from cuda sdk gives on my machine list of errors like
Traceback (most recent call last):
so I decided rebuild it with python version installed in system - and this turned out to be a difficult task
File "/usr/share/gdb/python/gdb/__init__.py", line 169, in _auto_load_packages
__import__(modname)
File "/usr/share/gdb/python/gdb/command/explore.py", line 746, in <module>
Explorer.init_env()
File "/usr/share/gdb/python/gdb/command/explore.py", line 135, in init_env
gdb.TYPE_CODE_RVALUE_REF : ReferenceExplorer,
AttributeError: 'module' object has no attribute 'TYPE_CODE_RVALUE_REF'
The first question is where the source code? Seems that official repository does not contain cuda specific code - so raison d'être of these repo is totally unclear. I extracted from cuda sdk .deb archive cuda-gdb-13.1.68.src.tar.gz and proceed with it
Second - process of configuring is extremely fragile - if you point single wrong option you will know about it only after 30-40 min. Also it seems that you just can't run configure in sub-dirs, bcs in that case linker will claims about tons of missed symbols. So configuration found by trial and errorconfigure --with-python=/usr/bin/python3 --enable-cuda
And finally we got file gdb/gdb having size 190 Mb. And after running I got stack trace beginning witharch-utils.c:1374: internal-error: gdbarch: Attempt to register unknown architecture (2)
This all raises some questions for nvidia: