Kaydet (Commit) 6a208b6c authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add codeSnippet debugging output when dbglevel>1

üst b7254fcd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment