VirtualBox

Changeset 20741 in vbox


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/dbg.h

    r20740 r20741  
    9696 * @returns Pointer to a new structure on success, NULL on failure.
    9797 */
    98 RTDECL(PRTDBGSYMBOL) RTDbgSymbolAlloc(void);
     98RTDECL(PRTDBGSYMBOL)    RTDbgSymbolAlloc(void);
    9999
    100100/**
     
    105105 * @param   pSymbol         The symbol to duplicate.
    106106 */
    107 RTDECL(PRTDBGSYMBOL) RTDbgSymbolDup(PCRTDBGSYMBOL pSymbol);
     107RTDECL(PRTDBGSYMBOL)    RTDbgSymbolDup(PCRTDBGSYMBOL pSymbol);
    108108
    109109/**
     
    112112 * @param   pSymbol         The symbol to free. NULL is ignored.
    113113 */
    114 RTDECL(void) RTDbgSymbolFree(PRTDBGSYMBOL pSymbol);
     114RTDECL(void)            RTDbgSymbolFree(PRTDBGSYMBOL pSymbol);
    115115
    116116
     
    142142typedef const RTDBGLINE *PCRTDBGLINE;
    143143
    144 RTDECL(PRTDBGLINE)   RTDbgLineAlloc(void);
    145 RTDECL(PRTDBGLINE)   RTDbgLineDup(PCRTDBGLINE pLine);
    146 RTDECL(void)         RTDbgLineFree(PRTDBGLINE pLine);
     144/**
     145 * Allocate a new line number structure.
     146 *
     147 * @returns Pointer to a new structure on success, NULL on failure.
     148 */
     149RTDECL(PRTDBGLINE)      RTDbgLineAlloc(void);
     150
     151/**
     152 * Duplicates a line number structure.
     153 *
     154 * @returns Pointer to duplicate on success, NULL on failure.
     155 *
     156 * @param   pLine           The line number to duplicate.
     157 */
     158RTDECL(PRTDBGLINE)      RTDbgLineDup(PCRTDBGLINE pLine);
     159
     160/**
     161 * Free a line number structure previously allocated by a RTDbg method.
     162 *
     163 * @param   pLine           The line number to free. NULL is ignored.
     164 */
     165RTDECL(void)            RTDbgLineFree(PRTDBGLINE pLine);
    147166
    148167
  • 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