title: Print value of variable in GDB while debugging msp430
body: <p>I am using GDB to debug my msp430. I connect the target and then load the binary of program and then "continue".</p>
  
  <p>My program is working fine however I want to see certain values of variables in real time. Actually I want to check the time stamp of my start of code and end of code which will give me total duration.</p>
  
  <p>As I am totally new to GDB, currently I have placed this line in my code</p>
  
  <pre><code>printf("Hello World\n");
  </code></pre>
  
  <p>However nothing is printed but my code is working fine which is actually blinking LEDs.</p>
  
  <p>Please guide me how to view values of variables in GDB in debug mode.</p>
  
  <p>Thanks</p>