Move CMC_DEBUG to OSL_DEBUG_LEVEL 3
This level means 'ultra-verbose'.
This commit is contained in:
@@ -56,7 +56,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
|
||||
|
||||
@@ -121,14 +121,14 @@ 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
|
||||
|
||||
//I think it is impossible to get UNO to pass structs as parameters by copy
|
||||
if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
|
||||
{
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "simple\n");
|
||||
#endif
|
||||
|
||||
@@ -194,7 +194,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
|
||||
void *pCppStack; //temporary stack pointer
|
||||
@@ -238,7 +238,7 @@ static typelib_TypeClass cpp2uno_call(
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "end of params\n");
|
||||
#endif
|
||||
|
||||
@@ -336,25 +336,25 @@ static typelib_TypeClass cpp_mediate(
|
||||
{
|
||||
nFunctionIndex &= 0x7fffffff;
|
||||
pThis = gpreg[1];
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "pThis is gpreg[1]\n");
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
pThis = gpreg[0];
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "pThis is gpreg[0]\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "pThis is %p\n", pThis);
|
||||
#endif
|
||||
|
||||
pThis = static_cast< char * >(pThis) - nVtableOffset;
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "pThis is now %p\n", pThis);
|
||||
#endif
|
||||
|
||||
@@ -364,7 +364,7 @@ static typelib_TypeClass cpp_mediate(
|
||||
|
||||
typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "indexes are %d %d\n", nFunctionIndex, pTypeDescr->nMapFunctionIndexToMemberIndex);
|
||||
#endif
|
||||
|
||||
@@ -380,7 +380,7 @@ static typelib_TypeClass cpp_mediate(
|
||||
sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
|
||||
OSL_ENSURE( nMemberPos < pTypeDescr->nAllMembers, "### illegal member index!" );
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "members are %d %d\n", nMemberPos, pTypeDescr->nAllMembers);
|
||||
#endif
|
||||
|
||||
@@ -468,7 +468,7 @@ static typelib_TypeClass cpp_mediate(
|
||||
}
|
||||
default:
|
||||
{
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "screwed\n");
|
||||
#endif
|
||||
|
||||
@@ -480,7 +480,7 @@ static typelib_TypeClass cpp_mediate(
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "end of cpp_mediate\n");
|
||||
#endif
|
||||
return eRet;
|
||||
@@ -520,7 +520,7 @@ extern "C" ia64::RegReturn cpp_vtable_call(
|
||||
register double f14 asm("f14"); fpreg[6] = f14;
|
||||
register double f15 asm("f15"); fpreg[7] = f15;
|
||||
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "cpp_vtable_call called with %lx\n", nOffsetAndIndex);
|
||||
fprintf(stderr, "adump is %lx %lx %lx %lx %lx %lx %lx %lx\n", in0, in1, in2, in3, in4, in5, in6, in7);
|
||||
fprintf(stderr, "bdump is %f %f %f %f %f %f %f %f\n", f8, f9, f10, f11, f12, f13, f14, f15);
|
||||
@@ -576,7 +576,7 @@ const int codeSnippetSize = 40;
|
||||
bridges::cpp_uno::shared::VtableFactory::Slot codeSnippet( unsigned char * code, sal_PtrDiff writetoexecdiff, sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset,
|
||||
bool bHasHiddenParam )
|
||||
{
|
||||
#ifdef CMC_DEBUG
|
||||
#ifdef OSL_DEBUG_LEVEL > 2
|
||||
fprintf(stderr, "size is %d\n", codeSnippetSize);
|
||||
fprintf(stderr,"in codeSnippet functionIndex is %x\n", nFunctionIndex);
|
||||
fprintf(stderr,"in codeSnippet vtableOffset is %x\n", nVtableOffset);
|
||||
@@ -632,7 +632,7 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
|
||||
{
|
||||
(*in_slots) -= functionCount;
|
||||
Slot * slots = *in_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
|
||||
|
Reference in New Issue
Block a user