I just made a tiny little shell script that helps me a bit with
debugging of plugins, and I'd like to share it. It really is a
lifesaver and saves the time spent doing ps -A, and then typing in the
process manually in gdb.
plug_debug=`ps -eo pid,comm | grep $1 | sed s/'$1'//`; gdb attach $plug_debug
Just that simple, it accepts the command line argument of the name of
the plugin you want to debug, and then launches gdb :), was a nice
learning experience to figure out how to use sed.
Gimp-developer mailing list