$ gdb app/gimp-2.6 core GNU gdb 6.8-debian [ blah blah GPLv3 blah license blah ] (gdb) where
But what if you don't have a core?