I had to turn optimization off to just to be able to use GDB. Recompiling both the framework and the project with -O0 made no difference.