title: In GDB how do I resolve duplicate symbols
body: <p>I have a global variable that's name has multiple symbols and I want to print all of them.  Example:</p>
  
  <pre><code>(gdb) info var g_reallocCount
  All variables matching regular expression "g_reallocCount":
  
  File sv.c:
  long int g_reallocCount;
  long int g_reallocCount;
  long int g_reallocCount;
  long int g_reallocCount;
  </code></pre>
  
  <p>when I try to use "print g_reallocCount" i get only one result, and it is not the one that I need.  </p>
  
  <p>I believe that the reason I have multiple symbols is that the static library I am changing is linked to multiple loaded modules.  At this time I am not sure whether I can change that fact.</p>
  
  <p>thanks </p>