I am experiencing problems when I set pending breakpoints to debug shared library. The good thing is at last I found the way for debugging even the pending breakpoints still don't work. I use the following commands:
set environment LD_PRELOAD /home/build/src/helix/debug/pcmrend.so
to debug pcm rendering, for example.