Debugger source send by client feature

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
bence gabor kis 2020-04-09 08:10:19 +02:00 committed by Hyukwoo Park
commit e52c7d1b00
15 changed files with 204 additions and 14 deletions

View file

@ -645,6 +645,17 @@ int main(int argc, char* argv[])
context->initDebugger(nullptr);
continue;
}
if (strcmp(argv[i], "--debugger-wait-source") == 0) {
StringRef* sourceName;
StringRef* clientSourceRef = context->getClientSource(&sourceName);
if (clientSourceRef) {
if (!evalScript(context, clientSourceRef, sourceName, false, false))
return 3;
runShell = false;
break;
}
continue;
}
} else { // `-option` case
if (strcmp(argv[i], "-e") == 0) {
runShell = false;