title: Redirecting/storing output of shell into GDB variable?
body: <p>I would like to know how it is possible to know the current system architecture in GDB and store this information into a variable for later evaluation.</p>
  
  <p>Something like: </p>
  
  <pre><code>set variable $x=`shell uname -m`
  </code></pre>