How can I get gdbserver to run the target program on start?
<p>Just like it says above.  The program needs to be invoked in sequence with others, by a script and I'd like to have it run automatically so that it is as true to the actual running conditions as possible. </p>

<p><strong><em>Edit</em></strong></p>

<p>I wasn't able to find an answer to this, but just in case someone comes looking here's how I worked around it, since I had access to gdb and screen on the target.</p>

<pre><code>screen -d -m gdb -x debugstart
</code></pre>

<p>where debugstart is a simple script containing:</p>

<pre><code>file program
r
</code></pre>

<p>this will launch a screen session and start gdb in it which starts running your program and then detatch from that screen session so you can just  <em>screen -r</em> when you need to look at the debugger. </p>