If you have a core file:
gdb programfile corefile gdb app/gimp-2.6 core.9926 gdb /usr/games/ppracer core