I am trying to figure out a very strange issue. I have CentOS 6.5 system with gdb:
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Your GDB is pretty old. Your GCC is fairly new.
I suspect that your GCC is emitting DWARF4
debug info (default as of gcc-4.8 according to release notes), which your GDB does not recognize.
Do you get better result with -gdwarf-2
instead of -g
?
If so, upgrade your GDB or use -gdwarf-2
with this compiler.