summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/gcc3_linux_s390x
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 17:04:36 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-01 17:05:34 +0100
commit61100f6fc62766a3ee25484f381ac5425687cf58 (patch)
tree4c438bc8ab01d0011358f5827f0cd56dd410eeab /bridges/source/cpp_uno/gcc3_linux_s390x
parent3990d8d6f4198e0c5a7d03e80c687355495d19d3 (diff)
Move CMC_DEBUG to OSL_DEBUG_LEVEL 3
This level means 'ultra-verbose'.
Diffstat (limited to 'bridges/source/cpp_uno/gcc3_linux_s390x')
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_s390x/cpp2uno.cxx20
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx8
2 files changed, 14 insertions, 14 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_s390x/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_s390x/cpp2uno.cxx
index 815d59611216..9fc884f6728f 100644
--- a/bridges/source/cpp_uno/gcc3_linux_s390x/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_s390x/cpp2uno.cxx
@@ -53,7 +53,7 @@ static typelib_TypeClass cpp2uno_call(
void ** gpreg, void ** fpreg, void ** ovrflw,
sal_Int64 * pRegisterReturn /* space for register return */ )
{
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "as far as cpp2uno_call\n");
#endif
int ng = 0; //number of gpr registers used
@@ -109,13 +109,13 @@ static typelib_TypeClass cpp2uno_call(
typelib_TypeDescription * pParamTypeDescr = 0;
TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "arg %d of %d\n", nPos, nParams);
#endif
if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr )) // value
{
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "simple\n");
#endif
@@ -203,7 +203,7 @@ static typelib_TypeClass cpp2uno_call(
}
else // ptr to complex value | ref
{
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "complex, ng is %d\n", ng);
#endif
@@ -247,7 +247,7 @@ static typelib_TypeClass cpp2uno_call(
}
}
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "end of params\n");
#endif
@@ -333,11 +333,11 @@ static typelib_TypeClass cpp_mediate(
sal_Int32 nVtableOffset = (nOffsetAndIndex >> 32);
sal_Int32 nFunctionIndex = (nOffsetAndIndex & 0xFFFFFFFF);
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "nVTableOffset, nFunctionIndex are %x %x\n", nVtableOffset, nFunctionIndex);
#endif
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
// Let's figure out what is really going on here
{
fprintf( stderr, "= cpp_mediate () =\nGPR's (%d): ", 5 );
@@ -506,14 +506,14 @@ long privateSnippetExecutor(long r2, long r3, long r4, long r5, long r6, long fi
register double f6 asm("f6"); fpreg[3] = f6;
volatile long nRegReturn[1];
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "before mediate with %lx\n",nOffsetAndIndex);
fprintf(stderr, "doubles are %f %f %f %f\n", fpreg[0], fpreg[1], fpreg[2], fpreg[3]);
#endif
typelib_TypeClass aType =
cpp_mediate( nOffsetAndIndex, (void**)gpreg, (void**)fpreg, (void**)sp,
(sal_Int64*)nRegReturn );
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "after mediate ret is %lx %ld\n", nRegReturn[0], nRegReturn[0]);
#endif
@@ -606,7 +606,7 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
{
(*slots) -= functionCount;
Slot * s = *slots;
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "in addLocalFunctions functionOffset is %x\n",functionOffset);
fprintf(stderr, "in addLocalFunctions vtableOffset is %x\n",vtableOffset);
#endif
diff --git a/bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx
index 8761da53d604..abb1ef554ed1 100644
--- a/bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star::uno;
void MapReturn(long r2, double f0, typelib_TypeClass eTypeClass, sal_uInt64* pRegisterReturn)
{
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr,"Mapping Return with %lx %ld %f\n", r2, r2, f0);
#endif
switch (eTypeClass)
@@ -82,7 +82,7 @@ void MapReturn(long r2, double f0, typelib_TypeClass eTypeClass, sal_uInt64* pRe
default:
break;
}
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "end of MapReturn with %x\n", pRegisterReturn ? *pRegisterReturn : 0);
#endif
}
@@ -143,7 +143,7 @@ void callVirtualMethod(
if ( nGPR > s390x::MAX_GPR_REGS )
nGPR = s390x::MAX_GPR_REGS;
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
// Let's figure out what is really going on here
{
fprintf( stderr, "= nStack is %d\n", nStack );
@@ -411,7 +411,7 @@ void unoInterfaceProxyDispatch(
uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
void * pReturn, void * pArgs[], uno_Any ** ppException )
{
-#ifdef CMC_DEBUG
+#ifdef OSL_DEBUG_LEVEL > 2
fprintf(stderr, "unoInterfaceProxyDispatch\n");
#endif