title: Watch content of stl vector via gdb
body: <p>I've got a stl vector of custom class objects defined in a global namespace (yeah, evil, I know).
  Now I would like to set a watchpoint in gdb to monitor possible changes in a (public) member variable for a certain element of this vector. Something like:</p>
  
  <pre><code>watch custom_namespace::vec[123].aVariable
  </code></pre>
  
  <p>If I do this, then gdb (Version 7.1 on Ubuntu Lucid) segfaults.
  Are there alternative ways. Is this possible at all?</p>