[PD-dev] gdb listening to PD

Conor J Curran forward at forwind.net
Mon Nov 13 23:17:13 CET 2006


I am using the standard PD installed from apt-get on Ubuntu Dapper, the
external is compiled in debug mode.
build trace was...

make -f ../../flext/buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd
COMPILER=gcc BUILDPATH=../../flext/buildsys/ PKGINFO=package.txt
BUILDCLASS=ext USRCONFIG=config.txt USRMAKE=../build/gnumake-lnx-gcc.inc
TARGETMODE=debug TARGETTYPE=single DEBUG=1 _build_
make[1]: Entering directory
`/home/ronoc/audio_development/dynamic_comb/src'
mkdir -p pd-linux/debug-single
g++ -c -msse -mfpmath=sse -ffast-math -D_DEBUG  -pthread -fPIC -g
-DFLEXT_SYS=2 -I/usr/lib/pd/src -I/usr/local/include/flext ResonComb.cpp
-o pd-linux/debug-single/ResonComb.opp
g++ -c -msse -mfpmath=sse -ffast-math -D_DEBUG  -pthread -fPIC -g
-DFLEXT_SYS=2 -I/usr/lib/pd/src -I/usr/local/include/flext
DynamicComb.cpp -o pd-linux/debug-single/DynamicComb.opp
g++ -pthread -shared  -g -L/usr/lib/pd/bin -L/usr/local/lib -o
pd-linux/debug-single/resoncomb~.pd_linux
pd-linux/debug-single/ResonComb.opp
pd-linux/debug-single/DynamicComb.opp  -lsndobj -lflext-pd_sd
chmod 755 pd-linux/debug-single/resoncomb~.pd_linux
make[1]: Leaving directory
`/home/ronoc/audio_development/dynamic_comb/src'


The funny thing was it managed to set the breakpoint properly the first
time. 

thanks for your attention.

C
On Mon, 2006-11-13 at 11:12 -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







More information about the Pd-dev mailing list