use of com.ibm.j9ddr.corereaders.ILibraryDependentCore in project openj9 by eclipse.
the class NativeLibrariesCommand method getExeFromDDR.
// we can use the hint mechanism in DTFJ to work out the exe location for elf cores with very long path names
private void getExeFromDDR(Context ctx, PrintStream out) {
try {
ICore core = ctx.process.getAddressSpace().getCore();
if (ILibraryDependentCore.class.isAssignableFrom(core.getClass())) {
ILibraryDependentCore ldcore = (ILibraryDependentCore) core;
J9DDRImageProcess proc = new J9DDRImageProcess(ctx.process);
ImageModule exe = proc.getExecutable();
out.println("exe = " + exe.getName());
ldcore.executablePathHint(exe.getName());
}
} catch (Exception e) {
out.println("Could not determine EXE name using DDR : " + e.getMessage());
}
}
Aggregations