Permalink
Browse files

A combination of fixes and new features for fruitstrap.

* 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.
  • Loading branch information...
1 parent e6d6232 commit 91e9185dbe4fc16fded5bb1453bcb3fb6d66ed36 Cory McWilliams committed Feb 28, 2012
Showing with 216 additions and 50 deletions.
  1. +6 −2 demo.c
  2. +210 −48 fruitstrap.c
View
8 demo.c
@@ -1,5 +1,9 @@
#include <stdio.h>
-int main() {
+int main(int argc, const char* argv[]) {
+ int i;
+ for (i = 0; i < argc; i++) {
+ printf("argv[%d] = %s\n", i, argv[i]);
+ }
return 0;
-}
+}
Oops, something went wrong.

0 comments on commit 91e9185

Please sign in to comment.