[PD-dev] gdb listening to PD

Tim Blechmann tim at klingt.org
Tue Nov 14 13:25:50 CET 2006

several ways to debug pd externals with gdb:

- crash the external (with asserts)
- declare pending breakpoint, that are resolved after the shared library
has been loaded
- set breakpoint after the dlopen stuff, when the symbols are available
- break manually after the external has been loaded and the symbols are
- use the gdb integration into your favorite ide to set breakpoints in
source files. (should work with about every decent ide like emacs,
eclipse, kdevelop)


On Mon, 2006-11-13 at 09:17 -0800, Miller Puckette wrote:
> Just to add to the fun... I've NEVER been able to get teh debugger to
> see Pd externals.  I can debug Pd itself on linux and Mac OK.  The
> only thing I've found is that, on Mac, it's important to be sure
> not to 'debug' the GUI process instead of Pd by accident.
> cheers
> Miller
> On Mon, Nov 13, 2006 at 11:12:31AM -0500, james tittle wrote:
> > On Nov 13, 2006, at 9:59 AM, forwinder wrote:
> > >
> > >Still can't get the bugger to set a break point though. GDB was  
> > >helpfully in that once PD died I could at least the back trace.
> > 
> > ...did you compile pd with "-g -O0"?  Are you stripping symbols  
> > somewhere?  What platform are you trying to debug on?
> > 
> > james
> > 
> > _______________________________________________
> > PD-dev mailing list
> > PD-dev at iem.at
> > http://lists.puredata.info/listinfo/pd-dev
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
tim at klingt.org    ICQ: 96771783

Cheat your landlord if you can and must, but do not try to shortchange
the Muse. It cannot be done. You can't fake quality any more than you
can fake a good meal.
  William S. Burroughs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20061114/5f4c0c31/attachment.pgp>

More information about the Pd-dev mailing list