mirror of https://gitee.com/bigwinds/arangodb
On windows also copy the pdb files on core exit
This commit is contained in:
parent
c7abfdac45
commit
19eb79dd4d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue