title: Print stream value in gdb - C++
body: <p>I'm trying to see the value of stream (ifstream, but it should work for all kind of streams I guess).
  The example code could look like this:</p>
  
  <pre><code>stringstream in("One Two Three Four Five");
  while(in)
  cout &lt;&lt; in;
  </code></pre>
  
  <p>I was trying to do it in following ways but none of them seems to work:</p>
  
  <pre><code>(gdb) print in
  (gdb) call cout &lt;&lt; in
  (gdb) call in.getline()
  </code></pre>
  
  <p>... and so on.</p>
  
  <p>Is there any way, to see the value of the stream?</p>