title: How do I print the elements of a C++ vector in GDB?
body: <p>I want to examine the contents of a <code>std::vector</code> in GDB, how do I do it?  Let's say it's a <code>std::vector&lt;int&gt;</code> for the sake of simplicity.</p>