VirtualBox

Changeset 20741 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jun 21, 2009 2:13:21 AM (16 years ago)
Author:
vboxsync
Message:

iprt/dbg.cpp/h: the RTDbgLine* methods as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbg.cpp

    r20740 r20741  
    7171}
    7272
     73
     74/**
     75 * Allocate a new line number structure.
     76 *
     77 * @returns Pointer to a new structure on success, NULL on failure.
     78 */
     79RTDECL(PRTDBGLINE) RTDbgLineAlloc(void)
     80{
     81    return (PRTDBGLINE)RTMemAllocZ(sizeof(RTDBGLINE));
     82}
     83
     84
     85/**
     86 * Duplicates a line number structure.
     87 *
     88 * @returns Pointer to duplicate on success, NULL on failure.
     89 *
     90 * @param   pLine           The line number to duplicate.
     91 */
     92RTDECL(PRTDBGLINE) RTDbgLineDup(PCRTDBGLINE pLine)
     93{
     94    return (PRTDBGLINE)RTMemDup(pLine, sizeof(*pLine));
     95}
     96
     97
     98/**
     99 * Free a line number structure previously allocated by a RTDbg method.
     100 *
     101 * @param   pLine           The line number to free. NULL is ignored.
     102 */
     103RTDECL(void) RTDbgLineFree(PRTDBGLINE pLine)
     104{
     105    RTMemFree(pLine);
     106}
     107
     108
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette