Thanks go to Kevin Turner, I now know how to debug a plug-in.
His suggestions works well.
Kevin Turner wrote:
> On Fri, Jul 14, 2000 at 02:30:32PM +0800, znm wrote:
> > How could I trace into the functions in /gimp-1.0.4/plug-in/
> > and/gimp-1.0.4/libgimp?
> Once the plug-in is started, you can attach gdb to the running process
> with gdb's "attach" command.
> One common trick is to put a line like this in the plug-in you're
> g_message ("plug-in PID: %d\n", getpid ());
> kill (getpid (), 19);
> with signal 19 being SIGSTOP. Then in gdb you do:
(gdb) attach 1234
> (gdb) continue
> where 1234 is the plug-in's PID. You may have to "continue" more than
> Kevin Turner <[EMAIL PROTECTED]> | OpenPGP encryption welcome here
> Plug-ins: They make GIMP do stuff. http://gimp-plug-ins.sourceforge.net/
> This list is archived at http://marc.theaimsgroup.com/?l=gimp-developer
> To unsubscribe, mail [EMAIL PROTECTED]