src/share/back/SDE.c

Print this page
rev 9508 : 8037825: Fix warnings and enable "warnings as errors" in serviceability native libraries
Reviewed-by:

*** 46,57 **** #define INIT_SIZE_STRATUM 3 #define BASE_STRATUM_NAME "Java" #define null NULL - #define true JNI_TRUE - #define false JNI_FALSE #define String char * #define private static typedef struct { int fileId; --- 46,55 ----
*** 145,155 **** stratumIndex = 0; currentFileId = 0; defaultStratumId = null; defaultStratumIndex = -1; baseStratumIndex = -2; /* so as not to match -1 above */ ! sourceMapIsValid = false; if (getSourceDebugExtension(clazz, &sourceDebugExtension) == JVMTI_ERROR_NONE) { sdePos = sourceDebugExtension; if (setjmp(jmp_buf_env) == 0) { --- 143,153 ---- stratumIndex = 0; currentFileId = 0; defaultStratumId = null; defaultStratumIndex = -1; baseStratumIndex = -2; /* so as not to match -1 above */ ! sourceMapIsValid = JNI_FALSE; if (getSourceDebugExtension(clazz, &sourceDebugExtension) == JVMTI_ERROR_NONE) { sdePos = sourceDebugExtension; if (setjmp(jmp_buf_env) == 0) {
*** 665,675 **** } ignoreLine(); /* flush the rest */ jplsFilename = readLine(); defaultStratumId = readLine(); createJavaStratum(); ! while (true) { if (sdeRead() != '*') { syntax("expected '*'"); } switch (sdeRead()) { case 'S': --- 663,673 ---- } ignoreLine(); /* flush the rest */ jplsFilename = readLine(); defaultStratumId = readLine(); createJavaStratum(); ! while (1) { if (sdeRead() != '*') { syntax("expected '*'"); } switch (sdeRead()) { case 'S':
*** 682,692 **** lineSection(); break; case 'E': /* set end points */ storeStratum("*terminator*"); ! sourceMapIsValid = true; return; default: ignoreSection(); } } --- 680,690 ---- lineSection(); break; case 'E': /* set end points */ storeStratum("*terminator*"); ! sourceMapIsValid = JNI_TRUE; return; default: ignoreSection(); } }