Changeset 40892 in vbox for trunk/src/bldprogs/VBoxTpG.cpp
- Timestamp:
- Apr 12, 2012 12:12:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/VBoxTpG.cpp
r40887 r40892 516 516 " ;0 1 2 3\n" 517 517 " ;012345678901234567890123456789012\n" 518 " db 'VTG Object Header v1. 3', 0, 0\n"518 " db 'VTG Object Header v1.4', 0, 0\n" 519 519 " dd %u\n" 520 520 " dd 0\n" … … 607 607 ScmStreamPrintf(pStrm, 608 608 " ; off=%u\n" 609 " db %2u; Argument count\n"610 " db %u; fHaveLargeArgs\n"611 " db 0, 0; Reserved\n"609 " db %2u ; Argument count\n" 610 " db %u ; fHaveLargeArgs\n" 611 " db 0, 0 ; Reserved\n" 612 612 , off, pProbe->cArgs, (int)pProbe->fHaveLargeArgs); 613 613 off += 4; … … 615 615 { 616 616 ScmStreamPrintf(pStrm, 617 " dd %6u; type '%s' (name '%s')\n"617 " dd %8u ; type '%s' (name '%s')\n" 618 618 " dd 0%08xh ; type flags\n", 619 619 strtabGetOff(pArg->pszType), pArg->pszType, pArg->pszName, … … 679 679 " dw NAME(g_fVTGProbeEnabled_%s_%s) - NAME(g_afVTGProbeEnabled)\n" 680 680 " dw %6u ; provider index\n" 681 " dd 0 ; for the application\n" 681 " dd NAME(g_VTGObjHeader) - NAME(g_VTGProbeData_%s_%s) ; offset to the object header\n" 682 " dd 0 ; for the application\n" 683 " dd 0 ; for the application\n" 682 684 , 683 685 pProvider->pszName, pProbe->pszMangledName, iProbe, … … 685 687 pProbe->offArgList, 686 688 pProvider->pszName, pProbe->pszMangledName, 687 iProvider); 689 iProvider, 690 pProvider->pszName, pProbe->pszMangledName 691 ); 688 692 pProbe->iProbe = iProbe; 689 693 iProbe++; … … 974 978 RTListForEach(&pProbe->ArgHead, pArg, VTGARG, ListEntry) 975 979 { 976 if (iArg < 5) 977 { 978 if (pArg->fType & VTG_TYPE_FIXED_SIZED) 979 ScmStreamPrintf(pStrm, 980 " /*AssertCompile(sizeof(%s) <= sizeof(uint32_t));*/ \\\n" 981 " /*AssertCompile(sizeof(%s) <= sizeof(uint32_t));*/ \\\n", 982 pArg->pszName, 983 pArg->pszType); 984 else 985 ScmStreamPrintf(pStrm, 986 " AssertCompile(sizeof(%s) <= sizeof(uintptr_t)); \\\n" 987 " AssertCompile(sizeof(%s) <= sizeof(uintptr_t)); \\\n", 988 pArg->pszName, 989 pArg->pszType); 990 } 980 if (pArg->fType & VTG_TYPE_FIXED_SIZED) 981 ScmStreamPrintf(pStrm, 982 " AssertCompile(sizeof(%s) == %u); \\\n" 983 " AssertCompile(sizeof(%s) <= %u); \\\n", 984 pArg->pszType, pArg->fType & VTG_TYPE_SIZE_MASK, 985 pArg->pszName, pArg->fType & VTG_TYPE_SIZE_MASK); 986 else if (pArg->fType & (VTG_TYPE_POINTER | VTG_TYPE_HC_ARCH_SIZED)) 987 ScmStreamPrintf(pStrm, 988 " AssertCompile(sizeof(%s) <= sizeof(uintptr_t)); \\\n" 989 " AssertCompile(sizeof(%s) <= sizeof(uintptr_t)); \\\n", 990 pArg->pszName, 991 pArg->pszType); 991 992 iArg++; 992 993 }
Note:
See TracChangeset
for help on using the changeset viewer.