linux - gdb python module can't find any function of it's own -
i compiled&installed gdb(7.1.1) source code doing cc=gcc-6 ./configure --with-python=python3 && make
sudo make install
. invoked gdb bash usual. when tried load python script within gdb doing source asdf.py
, threw error saying
attributeerror: 'module' object has no attribute 'execute'
i tried change code try more functions gdb module every function tried execute looking it's missing. invoked python interpreter within gdb did import gdb
, dir(gdb)
see gdb's contents, output
['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
so there module called gdb it's contents empty. have gone wrong during installation? or bug in gdb? how can fix this?
i found files needed gdb located @ gdb/data-directory. moving files place python scripts should did trick.
sudo cp -r gdb/data-directory/* /usr/share/gdb/
Comments
Post a Comment