title: Emacs gdb: Show variable permanently in addition to locals i
body: <p>I am using emacs for programming, and recently also gdb.</p>
  
  <p>The "locals" window does show local variables but not arguments to a function, which in a way also could be considered local variables. For example, if I have</p>
  
  <pre><code>void foo(char *bar) 
  {
      int n;
      ....
  }
  </code></pre>
  
  <p>then <code>n</code> is shown in the "locals" but not <code>bar</code>. Of course, I can <code>print bar</code>  but it is not automatically updated while I step through the code and I have to <code>print</code> all the time.</p>
  
  <p>Is there a way to add expressions that are shown in a window and constantly updated as I execute the code?</p>