title: Run gdb command from shell script
body: <p>I was just wondering if it is possible to pass command to GDB from shell script.
  I will just demonstrate it in code, so it is easier to understand.</p>
  
  <pre><code>#!/bin/sh
  gdb --silent Application.app
  b -[Class method]
  </code></pre>
  
  <p>This causes the execution of the script to stop at line 2, and continue only when I quit GDB.<br>
   How would I pass the command, if it is even possible? :)</p>