Re: debugging plug-ins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
debugging:

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
once.

-- 
Kevin Turner <acapnotic@xxxxxxxxxxxxxxxxxxxxx> | 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 gimp-developer-unsubscribe@xxxxxxxxxxxxxxxx


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux