title: Debugging/tracing inside a shared library during runtime?
body: <p>I'm trying to understand how a certain library works. I've compiled it with my added prinfts and everything is great. Now I want to stop the example program during runtime to look at the call stack, but I can't quite figure out how to do it with gdb. The function I want to break on, is inside a shared library. I've reviewed a <a href="https://stackoverflow.com/questions/801423/how-to-runtime-debug-shared-libraries">previous question</a> here on SO, but the approach doesn't work for me. The language in question is C++. I've attempted to provide the filename and line number, but gdb refuses to understand that, it only lists the source files from the demo app.</p>
  
  <p>Any suggestions?</p>