/*
* 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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* 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.
*/
#include "util.h"
#include "stream.h"
#include "outStream.h"
#include "inStream.h"
#include "transport.h"
#include "commonRef.h"
#include "bag.h"
#include "FrameID.h"
#define SMALLEST(a, b) ((a) < (b)) ? (a) : (b)
static void
{
}
}
void
{
/*
* Command-specific initialization
*/
}
void
{
/*
* Reply-specific initialization
*/
}
{
}
{
/* Only makes sense for commands */
}
static jdwpError
{
}
while (size > 0) {
}
}
}
return JDWP_ERROR(NONE);
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
id = NULL_OBJECT_ID;
} else {
/* Convert the object to an object id */
if (id == NULL_OBJECT_ID) {
}
/* Track the common ref in case we need to release it on a future error */
} else {
}
/* Add the encoded object id to the stream */
}
}
{
/*
* Not good - we're writing a pointer as a jint. Need
* to write as a jlong if sizeof(FrameID) == 8.
*/
if (sizeof(FrameID) == 8) {
/*LINTED*/
} else {
/*LINTED*/
}
}
{
/*
* Not good - we're writing a pointer as a jint. Need
* to write as a jlong if sizeof(jmethodID) == 8.
*/
if (sizeof(jmethodID) == 8) {
/*LINTED*/
} else {
/*LINTED*/
}
}
{
/*
* Not good - we're writing a pointer as a jint. Need
* to write as a jlong if sizeof(jfieldID) == 8.
*/
if (sizeof(jfieldID) == 8) {
/*LINTED*/
} else {
/*LINTED*/
}
}
{
}
{
}
{
/* Options utf8=y/n controls if we want Standard UTF-8 or Modified */
if ( gdata->modifiedUtf8 ) {
} else {
if ( new_length == length ) {
} else {
char *new_string;
}
}
return error;
}
{
} else {
}
if (isObjectTag(typeKey)) {
} else {
switch (typeKey) {
/* write nothing */
return JDWP_ERROR(NONE);
default:
break;
}
}
return JDWP_ERROR(NONE);
}
{
int i;
for (i = 0; i < count; i++) {
(void)outStream_writeByte(stream, 0);
}
}
{
}
void
{
}
}
static jint
/*
* If there's only 1 segment then we just send the
* packet.
*/
return rc;
}
/*
* Multiple segments
*/
len = 0;
do {
return JDWP_ERROR(OUT_OF_MEMORY);
}
}
return rc;
}
void
{
/*
* Don't send any collected stream data on an error reply
*/
}
if (rc == 0) {
}
}
void
{
if (rc == 0) {
}
}
}
static jboolean
{
return JNI_TRUE;
}
void
{
}
struct PacketData *p = next;
jvmtiDeallocate(p->data);
jvmtiDeallocate(p);
}
}