title: gdb: How can I execute gdb commands only if an environment variable is set?
body: <p>How can I execute gdb commands only if an environment variable is not set?</p>
  <p>Something like:</p>
  <pre><code> if ENV[$VERBOSE]
     printf &quot;a=%d\n&quot;, $a
   end
  </code></pre>