mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 14:08:03 -05:00
GP-6246 update file timestamp of dwarf external debug files when used
otherwise they get aged-off before they should.
This commit is contained in:
@@ -160,7 +160,11 @@ public class LocalDirDebugInfoDProvider implements DebugFileStorage {
|
||||
performInitMaintIfNeeded();
|
||||
|
||||
File f = getCachePath(debugInfo);
|
||||
return f.isFile() ? f : null;
|
||||
if (f.isFile()) {
|
||||
f.setLastModified(System.currentTimeMillis());
|
||||
return f;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private File getBuildidDir(String buildId) {
|
||||
@@ -187,7 +191,7 @@ public class LocalDirDebugInfoDProvider implements DebugFileStorage {
|
||||
performInitMaintIfNeeded();
|
||||
|
||||
File f = getCachePath(id);
|
||||
File tmpF = new File(f.getParent(), ".tmp_" + f.getName());
|
||||
File tmpF = new File(f.getParentFile(), ".tmp_" + f.getName());
|
||||
FileUtilities.checkedMkdirs(f.getParentFile());
|
||||
try (stream; FileOutputStream fos = new FileOutputStream(tmpF)) {
|
||||
FSUtilities.streamCopy(stream.is(), fos, monitor);
|
||||
|
||||
Reference in New Issue
Block a user