I\'ve just compiled gdb 7.8 from source in my home directory on a server machine running linux. I had previously been using gdb 7.6, and aside from
gdb 7.8
gdb 7.6
You should specify the value of "--data-directory". For example, if you load gdb from the build directory, the command should be:
--data-directory
gdb
./gdb -data-directory ./data-directory
Then gdb can know where to find python module.
python
You can refer this discussion.