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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -