diff options
| author | Bdale Garbee <bdale@gag.com> | 2009-09-06 10:39:23 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2009-09-06 10:39:23 -0600 | 
| commit | 35c54b3a278fa9bc2bc7f4b5ee04866697c93ba0 (patch) | |
| tree | 158e5e258d25e1d1f2ffa55492a3db43c16214ba /ao-tools/ao-dbg/ao-dbg-main.c | |
| parent | 4f8eff7401ee2d8092ab36fa33411f9b23dda880 (diff) | |
| parent | 6d018ab933832e2d80bb1564c339d9fb18b57be2 (diff) | |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'ao-tools/ao-dbg/ao-dbg-main.c')
| -rw-r--r-- | ao-tools/ao-dbg/ao-dbg-main.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/ao-tools/ao-dbg/ao-dbg-main.c b/ao-tools/ao-dbg/ao-dbg-main.c index f1e2c111..21b83a3d 100644 --- a/ao-tools/ao-dbg/ao-dbg-main.c +++ b/ao-tools/ao-dbg/ao-dbg-main.c @@ -34,6 +34,7 @@ struct ccdbg *s51_dbg;  int s51_interrupted = 0;  int s51_monitor = 0;  char *s51_tty = NULL; +char *s51_device = NULL;  static FILE *s51_input;  static FILE *s51_output; @@ -52,6 +53,7 @@ void s51_sigint()  static const struct option options[] = {  	{ .name = "tty", .has_arg = 1, .val = 'T' }, +	{ .name = "device", .has_arg = 1, .val = 'D' },  	{ 0, 0, 0, 0 },  }; @@ -114,6 +116,9 @@ main(int argc, char **argv)  		case 'T':  			s51_tty = optarg;  			break; +		case 'D': +			s51_device = optarg; +			break;  		}  	}  	if (s51_port) {  | 
