title: Printing Sub-Class Members in GDB
body: <p>Is there a setting in GDB that automatically prints all the members of a (C++) subclass from base-class pointer or do I always have to cast it to the sub-class pointer before dereferencing it.</p>
  
  <p>That is I don't always want to do:</p>
  
  <pre><code>p *(SubClass*)baseClassInstance
  </code></pre>