title: GDB: How can I find the in-memory total size of loaded symbols (msymbols, psymbols, symbols)?
body: <p>Our dev environment is configured in such a way that when we run the debug version of our code, it breaks into gdb on a crash or ^C. With some recent changes this is not happening anymore (exiting the program instead of breaking into gdb), and I'm suspecting the increase in symbols size is causing this issue.</p>
  
  <p>Is there a way to find the sizes of msymbols, psymbols &amp; symbols (memory consumption of symbols when they are loaded into the gdb session)? </p>
  
  <p>Also, is there a way to limit the memory used for symbols in gdb? Google mentions HP's version supports such feature  - and with other versions the only way out is to disable shared lib symbols auto-load and load them on demand. What would it take to have HP like support on, say FreeBSD?</p>
  
  <p>Thankyou. </p>