--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxDebuggerLocal.java 2020-02-27 14:04:45.762149000 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxDebuggerLocal.java 2020-02-27 14:04:45.457746000 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -121,6 +121,15 @@ @Override public native String demangle(String sym); + public native long findLibPtrByAddress0(long pc); + + @Override + public Address findLibPtrByAddress(Address pc) { + long ptr = findLibPtrByAddress0(pc.asLongValue()); + return (ptr == 0L) ? null + : new LinuxAddress(this, ptr); + } + // Note on Linux threads are really processes. When target process is // attached by a serviceability agent thread, only that thread can do // ptrace operations on the target. This is because from kernel's point