diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-12-23 21:03:55 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-12-24 03:34:46 +0200 |
commit | a639961bb23c05d90a605a618b252160243ef0ed (patch) | |
tree | 7a0da03b3f624189cdb6acf9bcc056846343a5ae /bridges | |
parent | More informative logging in codeSnippet() (diff) | |
download | core-a639961bb23c05d90a605a618b252160243ef0ed.tar.gz core-a639961bb23c05d90a605a618b252160243ef0ed.zip |
More informative logging in codeSnippet()
Change-Id: I51bceba0918928812daca3a2c92633b6998b380c
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno-arm64.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno-arm64.cxx b/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno-arm64.cxx index a82628a66eeb..8c57046713fa 100644 --- a/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno-arm64.cxx +++ b/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno-arm64.cxx @@ -461,7 +461,9 @@ extern "C" sal_Int64 cpp_vtable_call( sal_Int32 *pFunctionAndOffset, namespace { - unsigned char *codeSnippet(sal_Int32 functionIndex, + unsigned char *codeSnippet(const typelib_InterfaceTypeDescription *type, + const typelib_TypeDescription *member, + sal_Int32 functionIndex, sal_Int32 vtableOffset) { assert(functionIndex < nFunIndexes); @@ -477,7 +479,7 @@ namespace int index = functionIndex*nVtableOffsets + vtableOffset; unsigned char *result = ((unsigned char *) &codeSnippets) + codeSnippets[index]; - SAL_INFO( "bridges.ios", "codeSnippet: [" << functionIndex << "," << vtableOffset << "]=" << (void *) result << " (" << std::hex << ((int*)result)[0] << "," << ((int*)result)[1] << "," << ((int*)result)[2] << "," << ((int*)result)[3] << ")"); + SAL_INFO( "bridges.ios", "codeSnippet(" << OUString(type->aBase.pTypeName) << "::" << OUString(member->pTypeName) << "): [" << functionIndex << "," << vtableOffset << "]=" << (void *) result << " (" << std::hex << ((int*)result)[0] << "," << ((int*)result)[1] << "," << ((int*)result)[2] << "," << ((int*)result)[3] << ")"); return result; } @@ -530,18 +532,18 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions( reinterpret_cast<typelib_InterfaceAttributeTypeDescription *>( member ); // Getter: - (s++)->fn = codeSnippet( functionOffset++, vtableOffset ); + (s++)->fn = codeSnippet( type, member, functionOffset++, vtableOffset ); // Setter: if (!pAttrTD->bReadOnly) { - (s++)->fn = codeSnippet( functionOffset++, vtableOffset ); + (s++)->fn = codeSnippet( type, member, functionOffset++, vtableOffset ); } break; } case typelib_TypeClass_INTERFACE_METHOD: { - (s++)->fn = codeSnippet( functionOffset++, vtableOffset ); + (s++)->fn = codeSnippet( type, member, functionOffset++, vtableOffset ); break; } default: |