ghughes/fruitstrap — pull request #6 by unprompted (2012-02-28 17:01:44+00:00)
Title: Assorted fruitstrap fixed

Here is a bit of a pile of changes I made to fruitstrap. I believe I have fixed a number of reliability issues that should make this now very robust. I added some small options I needed along the way.

* Ability to pass command-line arguments to the running application.
* Fiddled with the device support path discovery so that it works for me with XCode 4.3 on Lion.
* Fixed some bugs with write_gdb_prep_cmds (the string replace on dcp_noprivate with an incorrect length lead to a frequent crash).
* Fill in address.sun_len to make a warning go away.
* Handled gdb exiting slightly more gracefully.
* Closed device control sessions when we don't need them. These sessions timing out lead to frequent failures the next time they were used.
* Added some getopt argument parsing.
* Added verbose and timeout (timeout for connecting to device) arguments.