Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

KDBG_DECL ( PKDBGLINE   ) 

Duplicates a line number.

To save heap space, the returned line number will not own more heap space than it strictly need to. So, it's not possible to append stuff to the symbol or anything of that kind.

Returns:
Pointer to the duplicate. This must be freed using RTDbgSymbolFree().
Parameters:
pLine The line number to be duplicated.
Duplicates a line number.

To save heap space, the returned line number will not own more heap space than it strictly need to. So, it's not possible to append stuff to the symbol or anything of that kind.

Returns:
Pointer to the duplicate. This must be freed using kDbgSymbolFree().
Parameters:
pLine The line number to be duplicated.

Definition at line 49 of file kDbgLine.cpp.

References KDBGLINE::cbSelf, K_OFFSETOF, KSIZE, and NULL.

{
    kDbgAssertPtrReturn(pLine, NULL);
    KSIZE cb = K_OFFSETOF(KDBGLINE, szFile[pLine->cchFile + 1]);
    PKDBGLINE pNewLine = (PKDBGLINE)kHlpDup(pLine, cb);
    if (pNewLine)
        pNewLine->cbSelf = cb;
    return pNewLine;
}


Generated by  Doxygen 1.6.0   Back to index