gdb ./simple GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /afs/cern.ch/user/m/mkrafczy/lxplus/Software/simple_gdb_test/simple...done. (gdb) br simple.cpp:19 Breakpoint 1 at 0x4005b8: file simple.cpp, line 19. (gdb) r Starting program: /afs/cern.ch/user/m/mkrafczy/lxplus/Software/simple_gdb_test/simple Breakpoint 1, main () at simple.cpp:19 19 printf("A is %i\n", TheClass.getA()); Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6.x86_64 libgcc-4.4.7-11.el6.x86_64 libstdc++-4.4.7-11.el6.x86_64 snoopy-1.7.10-1.el6.x86_64 (gdb) print TheClass $1 = {A = 0} (gdb) q A debugging session is active. Inferior 1 [process 29170] will be killed. Quit anyway? (y or n) y