/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
/**
We don't run any of the "standard" SA command line tools for sanity
check. This is because the standard tools print addresses in hex
which could change legally. Also, textual comparison of output may
not match because of other reasons as well. This tool checks
validity of threads and frames logically. This class has reference
frame names from "known" threads. The debuggee is assumed to run
*/
public void run() {
// try to get VM version and check
// try getting threads
boolean mainTested = false;
// check frames of each thread
if (cur.isJavaThread()) {
// testing of basic frame walking for all threads
checkFrame(vf);
}
// special testing for "known" threads. For now, only "main" thread.
mainTested = true;
}
}
}
}
try {
}
}
// -- Internals only below this point
if (f == null) {
return null;
}
return null;
}
if (vf.isJavaFrame()) {
return (JavaVFrame) vf;
}
}
public void doBool () {}
public void doChar () {}
public void doFloat () {}
public void doDouble() {}
public void doByte () {}
public void doShort () {}
public void doInt () {}
public void doLong () {}
public void doVoid () {}
};
// this will throw RuntimeException for any invalid item in signature.
}
if (! m.isNative()) {
byte[] buf = m.getByteCode();
if (m.hasLineNumberTable()) {
}
}
}
}
}
// from the test case LibprocTest.java - in the main thread we
// should see frames as below
"java.lang.Object.wait(long)",
"java.lang.Object.wait()",
"LibprocTest.main(java.lang.String[])"
};
}
int i = 0;
"expected frame missing");
}
}
}