python exception No module named gdb:

后端 未结 4 1500
半阙折子戏
半阙折子戏 2020-12-17 20:35

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

4条回答
  •  北海茫月
    2020-12-17 21:17

    just to complete the above responses:

    Probably you have copied the executable gdb to /usr/local/bin (which is my way to prioritize the lastest gdb that I installed as default shell gdb, while preventing messing up with the default Ubuntu's gdb). Then you should consider that you must give the data-directory parameter from the original place to the one that you have copied in /usr/local/bin. So that would be:

    /usr/local/bin/gdb --data-directory=/path_to_fully_installed_gdb_folder/data-directory
    

    PS: I did this for gdb-8.1 on Ubuntu 16.04

提交回复
热议问题