title: Print the whole linked list in gdb?
body: <p>I have a linked list </p>
  
  <pre><code>struct node {
      data_t data;
      node_t *next;
  };
  
  typedef struct {
      node_t *head;
      node_t *foot;
      node_t *curr;   // for iterator
      unsigned int size;
  } list_t;
  </code></pre>
  
  <p>with this structure, let say 
  I defined a list</p>
  
  <pre><code>list_t* myList;
  </code></pre>
  
  <p>How can I use GDB to print the whole linked list? </p>