title: printing a GHashTable out in GDB
body: <p>I am trying to print out a GHashTable in GDB in a clean way.  I found a blog on the Archer project which shows the ability to print out a GHashTable nicely:
  <a href="http://blogs.gnome.org/alexl/2009/09/21/archer-gdb-macros-for-glib/" rel="nofollow">http://blogs.gnome.org/alexl/2009/09/21/archer-gdb-macros-for-glib/</a></p>
  
  <p>From what I understand, this Archer project functionality was pushed in to GDB mainstream.  </p>
  
  <p>In GDB I do:</p>
  
  <pre><code>set print pretty on
  </code></pre>
  
  <p>And then I try to print out the hash table, but it still only gives me a memory address:</p>
  
  <pre><code>(gdb) print call_data-&gt;fields-&gt;field_indicies
  $3 = (GHashTable *) 0x87f4580
  </code></pre>
  
  <p>If I try de-referencing the pointer in GDB, I get an incomplete type:</p>
  
  <pre><code>(gdb) print *call_data-&gt;fields-&gt;field_indicies
  $2 = &lt;incomplete type&gt;
  </code></pre>
  
  <p>I am running Ubuntu, and I have libglib2.0-0-dbg installed:</p>
  
  <pre><code>gnychis@qc2:~/Documents/wireshark_native$ sudo apt-get install libglib2.0-0-dbg
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  libglib2.0-0-dbg is already the newest version.
  </code></pre>
  
  <p>Does anyone know how else I can print this out? or why I do not have the proper glib and gdb support?</p>