able to send multiple source file to debugger server

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
bence gabor kis 2020-06-10 11:04:10 +02:00 committed by Hyukwoo Park
commit 3bb4a39e50
7 changed files with 110 additions and 11 deletions

View file

@ -652,12 +652,15 @@ int main(int argc, char* argv[])
}
if (strcmp(argv[i], "--debugger-wait-source") == 0) {
StringRef* sourceName;
StringRef* clientSourceRef = context->getClientSource(&sourceName);
if (clientSourceRef) {
StringRef* clientSourceRef;
while (true) {
clientSourceRef = context->getClientSource(&sourceName);
if (!clientSourceRef) {
break;
}
if (!evalScript(context, clientSourceRef, sourceName, false, false))
return 3;
runShell = false;
break;
}
continue;
}