diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-08-12 22:05:57 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-08-14 00:55:11 +0300 |
commit | 6a208b6c6c4e297ecd7402d2d813a2372e97ae7d (patch) | |
tree | b102b6cd38e7016c2027a38a14b26a26011126f1 /bridges | |
parent | b7254fcd897e9359ac44d04c9eca91e2b6f403e3 (diff) |
Add codeSnippet debugging output when dbglevel>1
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_macosx_intel/cpp2uno.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |