// bug!!!
System.out.println("bug occurred!!");
}
- ProcessInfo baseProcessInfo = pInfoPack.getBaseProcessInfo();
+ ProcessInfo lastProcessInfo = pInfoPack.getLastProcessInfo();
ProcessInfo pInfo = new ProcessInfo();
pInfo.setPid(pid);
- pInfo.setPpid(baseProcessInfo.getPpid());
- pInfo.setStartTime(baseProcessInfo.getStartTime());
- pInfo.setMainTargetBinaryPath(baseProcessInfo.getMainTargetBinaryPath());
- pInfo.getLibObjs().addAll(baseProcessInfo.getLibObjs());
- pInfo.getLibObjHash().putAll(baseProcessInfo.getLibObjHash());
- pInfo.setLowestAddress(baseProcessInfo.getLowestAddress());
- pInfo.setHighestAddress(baseProcessInfo.getHighestAddress());
+ pInfo.setPpid(lastProcessInfo.getPpid());
+ pInfo.setStartTime(changeTime);
+ pInfo.setMainTargetBinaryPath(lastProcessInfo.getMainTargetBinaryPath());
+ pInfo.getLibObjs().addAll(lastProcessInfo.getLibObjs());
+ pInfo.getLibObjHash().putAll(lastProcessInfo.getLibObjHash());
+ pInfo.setLowestAddress(lastProcessInfo.getLowestAddress());
+ pInfo.setHighestAddress(lastProcessInfo.getHighestAddress());
pInfoPack.getProcessSnapshots().add(pInfo);
pInfo.getLibObjHash().put(libPath, libObj);
// log
- System.out.println("MAP CHANGED MAP "
+ System.out.println("MAP CHANGED ADD "
+ AnalyzerUtil.toHexdecimal(id) + " libPath : " + libPath
+ " low : " + AnalyzerUtil.toHexdecimal(lowAddr)
- + " high: " + AnalyzerUtil.toHexdecimal(highAddr));
+ + " high: " + AnalyzerUtil.toHexdecimal(highAddr) + " chage time : " + changeTime.getSaveFormat() + " total count : " + pInfo.getLibObjs().size());
} else {
- System.out.println("MAP CHANGED UNMAP "
+ System.out.println("MAP CHANGED REMOVE "
+ AnalyzerUtil.toHexdecimal(id) + " libPath : " + libPath
+ " low : " + AnalyzerUtil.toHexdecimal(lowAddr)
- + " high: " + AnalyzerUtil.toHexdecimal(highAddr));
+ + " high: " + AnalyzerUtil.toHexdecimal(highAddr) + " chage time : " + changeTime.getSaveFormat()+ " total count : " + pInfo.getDepLibCount());
int size = libObjs.size();
for (int i = 0; i < size; i++) {