gdb ./test 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/root_gdb_test/test...done. (gdb) br test.cpp:19 Breakpoint 1 at 0x400bb8: file test.cpp, line 19. (gdb) run Starting program: /afs/cern.ch/user/m/mkrafczy/lxplus/Software/root_gdb_test/test [Thread debugging using libthread_db enabled] A Breakpoint 1, main () at test.cpp:20 20 printf("B\n"); 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 openssl-1.0.1e-30.el6_6.4.x86_64 snoopy-1.7.10-1.el6.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) print test_hist $1 = (TH2D *) 0x8e8630 (gdb) ptype TH2D No symbol "TH2D" in current context. (gdb) ptype test_hist type = class TH2D { } * (gdb) q A debugging session is active. Inferior 1 [process 28483] will be killed. Quit anyway? (y or n) y