X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debugger%2Fmcs51%2Fsimi.c;fp=debugger%2Fmcs51%2Fsimi.c;h=168f02eb6e15e1fdd8496f7186e646818275c3c6;hb=fd67da9d82f190df558abfb076460cf4f9bf1bc0;hp=12430d1e625a5bbc4ad54d7c80854332f34f952d;hpb=d2e92800ff67b23b3afbd4a6e446cb1e553f3a82;p=fw%2Fsdcc diff --git a/debugger/mcs51/simi.c b/debugger/mcs51/simi.c index 12430d1e..168f02eb 100644 --- a/debugger/mcs51/simi.c +++ b/debugger/mcs51/simi.c @@ -88,6 +88,8 @@ void openSimulator (char **args, int nargs) struct sockaddr_in sin; int retry = 0; int i ; + +#if 0 char *simargs[32] = { "s51","-P","-r 9756", NULL }; /* create the arguments */ @@ -95,6 +97,7 @@ void openSimulator (char **args, int nargs) simargs[i+3] = args[i]; } simargs[i+3]= NULL; +#endif /* fork and start the simulator as a subprocess */ if ((simPid = fork())) { @@ -103,7 +106,8 @@ void openSimulator (char **args, int nargs) else { /* we are in the child process : start the simulator */ - if (execvp("s51",simargs) < 0) { +// if (execvp("s51",simargs) < 0) { + if (execvp(args[0],args) < 0) { perror("cannot exec simulator"); exit(1); }