Add codeSnippet debugging output when dbglevel>1
This commit is contained in:
parent
b7254fcd89
commit
6a208b6c6c
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue