gdb can not find debug info on Centos
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) and gcc: gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-8) I have this file: #include<stdio.h> int main() { printf("OK!"); return 0; } which I compile with: gcc -o a a.c -g -O0 The file seems to be fine: $ file a a: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped But when I try to debug it, this happens: $ gdb a GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) Copyright (C) 2010 Free