title: Inspecting standard container (std::map) contents with gdb
body: <p>Supposing to have something like this:</p>
  
  <pre><code>#include &lt;map&gt;
  int main(){
      std::map&lt;int,int&gt; m;
      m[1] = 2;
      m[2] = 4;
      return 0;
  }
  </code></pre>
  
  <p>I would like to be able to inspect the contents of the map running the program from gdb.<br>
  If I try using the subscript operator I get:  </p>
  
  <pre><code>(gdb) p m[1]
  Attempt to take address of value not located in memory.
  </code></pre>
  
  <p>Using the find method does not yield better results:</p>
  
  <pre><code>(gdb) p m.find(1)
  Cannot evaluate function -- may be inlined
  </code></pre>
  
  <p>Is there a way to accomplish this? </p>