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
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