Irbis
asked on
gdb doesn't stop on breakpoint
Hi,
I'm debugging a window manager - compiz (source code). I have added "-g" to common flags (for C_FLAGS and CXX_FLAGS). CCP plugin is responsible for loading other plugins and configuration - it uses libcompizconfig. GDB stops on breakpoints everywhere except libcompizconfig. I can stop in CCP plugin ctor (for example compiz-0.9.13.1/plugins/cc p/src/ccp. cpp:541) but when I set a breakpoint in libcompizconfig - in a function which is executed after CCP plugin breakpoint (compiz-0.9.13.1/compizcon fig/libcom pizconfig/ src/main.c :609) gdb doesn't stop. Here is that line:
A build is not optimized. Libraries have debug symbols. I have tried to debug from IDE and a terminal. I don't understand why gdb doesn't stop in libcompizconfig. How to fix that ?
I'm debugging a window manager - compiz (source code). I have added "-g" to common flags (for C_FLAGS and CXX_FLAGS). CCP plugin is responsible for loading other plugins and configuration - it uses libcompizconfig. GDB stops on breakpoints everywhere except libcompizconfig. I can stop in CCP plugin ctor (for example compiz-0.9.13.1/plugins/cc
CCSBackendLoader *loader = ccsSharedLibBackendLoaderNew (&ccsDefaultObjectAllocator);
A build is not optimized. Libraries have debug symbols. I have tried to debug from IDE and a terminal. I don't understand why gdb doesn't stop in libcompizconfig. How to fix that ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I debug that project on a second x session but I use Ubuntu 16.04 which by default also uses Compiz as a window manager.
libcompizconfig is loaded from /usr/lib/x86_64-linux-gnu/
Thanks.