title: GDB: How to restrain the scope of convenience variable
body: <p>So I have 2 custom commands:</p>
  
  <pre><code>define foo
    set $i = 10
  end
  
  define bar
    set $i = 100
    foo
    print $i   &lt;=== print "10"
  end
  </code></pre>
  
  <p>So $i is not scoped to each custom command which is what I want. Except using different names, any tricks out there?</p>