title: gdb not printing data structures overloaded method <<
body: <p>I have a data structure s which has an overloaded method '&lt;&lt;'. I want to look at this structure using gdb, so I use </p>
  
  <pre><code>(gdb)print s
  </code></pre>
  
  <p>However, this does not print </p>
  
  <pre><code>cout &lt;&lt; s
  </code></pre>
  
  <p>it gives lots more information about the structure s, which fills up many screens. I am not interested in every bit of data in s, I just want to see what is happening  with the information printed by '&lt;&lt;'. How can I tell gdb to only print this information? </p>