title: How do I access STL classes like std::string in gdb postmortem?
body: <p>I have a core dump with a <code>std::string</code> that I'd like to inspect in gdb. Printing it gives me its contents as a null-terminated string, but how do I access other <code>std::string</code> properties such as size and capacity? Trying to access <code>s.size()</code> directly results in an error, "You can't do that without a process to debug."</p>