title: How do I store symbol names from the stack trace in GDB Script variables?
body: <p>Supposed this is my stack trace:</p>
  
  <pre><code>#0 f1 () at foo.c:n
  #1 f2 () at foo.c:n
  #2 f3 () at foo.c:n
  #3 f4 () at foo.c:n
  </code></pre>
  
  <p>I want to be able to do something like this in a GDB script:</p>
  
  <pre><code>printf "function %s called function %s\n", $f1_name, $f2_name
  </code></pre>
  
  <p>Is this possible? Is there a struct somewhere with this kind of metadata?</p>