1
0
Fork 0

On windows also copy the pdb files on core exit

This commit is contained in:
Willi Goesgens 2015-04-13 12:17:08 +02:00
parent c7abfdac45
commit 19eb79dd4d
1 changed files with 6 additions and 2 deletions

View File

@ -481,15 +481,19 @@ function checkInstanceAlive(instanceInfo, options) {
{
storeArangodPath = "/var/tmp/arangod_" + instanceInfo.pid.pid;
print("Core dump written; copying arangod to " +
storeArangodPath + " for later analysis.");
instanceInfo.tmpDataDir + " for later analysis.");
res.gdbHint = "Run debugger with 'gdb " +
storeArangodPath +
" /var/tmp/core*" + instanceInfo.pid.pid + "*'";
copy("bin/arangod", storeArangodPath);
if (require("internal").platform.substr(0,3) === 'win') {
copy("bin/arangod.exe", instanceInfo.tmpDataDir);
copy("bin/arangod.pdb", instanceInfo.tmpDataDir);
// Windows: wait for procdump to do its job...
statusExternal(instanceInfo.monitor, true);
}
else {
copy("bin/arangod", instanceInfo.tmpDataDir);
}
}
}
if (!ret) {