I currently have GDB version 7.7.1 installed on my system. However, for the combination of Eclipse and a software package called openFOAM (version 2.3.1) I need to downgrade the GDB version to 6.8 in order for Eclipse to run in debug mode, as is mentioned here:
https://openfoamwiki.net/index.php/HowTo_Use_OpenFOAM_with_Eclipse#Versions
I uninstalled GDB version 7.7.1 and downloaded gdb-6.8a.tar.gz from http://ftp.gnu.org/gnu/gdb/ and try to install using:
sudo ./configure --disable-werror
sudo make
sudo make install
At the last two lines I get the error:
linux-nat.h:63:18: error: field 'siginfo' has incomplete type
I don't know how to fix this error as searching for it seems to indicate a bug that was fixed in later GDB versions (this is obviously not useful for me). Any help would be greatly appreciated.
struct siginfo
tosiginfo_t
in several spots inlinux-nat.[ch]
. It appears to run, with some warnings. But in order to debug my test programs, I had to recompile them, giving gcc the-gdwarf-2
option. The current gcc produces dwarf-4 debug info, which this old gdb doesn't understand.