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
available
- 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)

tim

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
> > [email protected]
> > http://lists.puredata.info/listinfo/pd-dev
> 
> _______________________________________________
> PD-dev mailing list
> [email protected]
> http://lists.puredata.info/listinfo/pd-dev
--
[EMAIL PROTECTED]    ICQ: 96771783
http://www.mokabar.tk

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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
PD-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to