From 6a208b6c6c4e297ecd7402d2d813a2372e97ae7d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 12 Aug 2011 22:05:57 +0300 Subject: Add codeSnippet debugging output when dbglevel>1 --- bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bridges') diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx index 2ceb0bba529d..64f27baf9a93 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx @@ -438,6 +438,18 @@ unsigned char * codeSnippet( = ((unsigned char *) exec) - p - sizeof (sal_Int32); p += sizeof (sal_Int32); OSL_ASSERT(p - code <= codeSnippetSize); +#if OSL_DEBUG_LEVEL > 1 + fprintf(stderr, + "==> codeSnippet to %s, functionIndex=%d%s, vtableOffset=%d\n", + (exec == privateSnippetExecutorGeneral ? "General" : + (exec == privateSnippetExecutorVoid ? "Void" : + (exec == privateSnippetExecutorHyper ? "Hyper" : + (exec == privateSnippetExecutorFloat ? "Float" : + (exec == privateSnippetExecutorDouble ? "Double" : + (exec == privateSnippetExecutorClass ? "Class" : + "???")))))), + (functionIndex & ~0x80000000), (functionIndex & 0x80000000) ? "|0x80000000":"", vtableOffset); +#endif return code + codeSnippetSize; } -- cgit