VirtualBox

Changeset 46165 in vbox for trunk/include


Ignore:
Timestamp:
May 19, 2013 7:07:50 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85865
Message:

Made dSYM-bundle loading work as well as line numbers in the stack traces (when possible).

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r45485 r46165  
    379379VMMDECL(PCPUMCTX)       CPUMQueryGuestCtxPtr(PVMCPU pVCpu);
    380380VMMDECL(PCCPUMCTXCORE)  CPUMGetGuestCtxCore(PVMCPU pVCpu);
    381 VMMR3DECL(int)          CPUMR3RawEnter(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore);
    382 VMMR3DECL(int)          CPUMR3RawLeave(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, int rc);
     381VMM_INT_DECL(int)       CPUMRawEnter(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore);
     382VMM_INT_DECL(int)       CPUMRawLeave(PVMCPU pVCpu, PCPUMCTXCORE pCtxCore, int rc);
    383383VMMDECL(uint32_t)       CPUMRawGetEFlags(PVMCPU pVCpu);
    384384VMMDECL(void)           CPUMRawSetEFlags(PVMCPU pVCpu, uint32_t fEfl);
  • trunk/include/VBox/vmm/dbgf.h

    r46159 r46165  
    677677VMMR3DECL(int)          DBGFR3AsSymbolByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszSymbol, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod);
    678678
     679VMMR3DECL(int)          DBGFR3AsLineByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress,
     680                                           PRTGCINTPTR poffDisp, PRTDBGLINE pLine, PRTDBGMOD phMod);
     681VMMR3DECL(PRTDBGLINE)   DBGFR3AsLineByAddrA(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress,
     682                                            PRTGCINTPTR poffDisp, PRTDBGMOD phMod);
     683
    679684/* The following are soon to be obsoleted: */
    680685VMMR3DECL(int)          DBGFR3ModuleLoad(PUVM pUVM, const char *pszFilename, RTGCUINTPTR AddressDelta, const char *pszName, RTGCUINTPTR ModuleAddress, unsigned cbImage);
    681 VMMR3_INT_DECL(void)    DBGFR3ModuleRelocate(PVM pVM, RTGCUINTPTR OldImageBase, RTGCUINTPTR NewImageBase, RTGCUINTPTR cbImage,
    682                                              const char *pszFilename, const char *pszName);
    683686VMMR3_INT_DECL(int)     DBGFR3SymbolAdd(PVM pVM, RTGCUINTPTR ModuleAddress, RTGCUINTPTR SymbolAddress, RTUINT cbSymbol, const char *pszSymbol);
    684687VMMR3_INT_DECL(int)     DBGFR3SymbolByAddr(PVM pVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFSYMBOL pSymbol);
    685688VMMR3_INT_DECL(int)     DBGFR3SymbolByName(PVM pVM, const char *pszSymbol, PDBGFSYMBOL pSymbol);
    686 
    687 VMMR3DECL(int)          DBGFR3LineByAddr(PUVM pUVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement, PDBGFLINE pLine);
    688 VMMR3DECL(PDBGFLINE)    DBGFR3LineByAddrAlloc(PUVM pUVM, RTGCUINTPTR Address, PRTGCINTPTR poffDisplacement);
    689 VMMR3_INT_DECL(void)    DBGFR3LineFree(PDBGFLINE pLine);
    690689
    691690#endif /* IN_RING3 */
     
    780779    PRTDBGSYMBOL    pSymPC;
    781780    /** Pointer to the linnumber nearest the program counter (PC). NULL if not found. */
    782     PDBGFLINE       pLinePC;
     781    PRTDBGLINE      pLinePC;
    783782
    784783    /** The return frame address.
     
    797796    PRTDBGSYMBOL    pSymReturnPC;
    798797    /** Pointer to the linnumber nearest the return PC. NULL if not found. */
    799     PDBGFLINE       pLineReturnPC;
     798    PRTDBGLINE      pLineReturnPC;
    800799
    801800    /** 32-bytes of stack arguments. */
  • trunk/include/iprt/dbg.h

    r46161 r46165  
    851851
    852852/**
    853  * Query a line number by address.
    854  *
    855  * @returns IPRT status code. See RTDbgModSymbolAddrA for more specific ones.
    856  * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    857  * @retval  VERR_NOT_FOUND if the address couldn't be mapped to a module.
    858  *
    859  * @param   hDbgAs          The address space handle.
    860  * @param   Addr            The address which closest symbol is requested.
    861  * @param   poffDisp        Where to return the distance between the line
    862  *                          number and address.
    863  * @param   pLine           Where to return the line number information.
    864  */
    865 RTDECL(int) RTDbgAsLineByAddr(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE pLine);
    866 
    867 /**
    868853 * Adds a line number to a module in the address space.
    869854 *
    870  * @returns IPRT status code. See RTDbgModSymbolAdd for more specific ones.
     855 * @returns IPRT status code. See RTDbgModLineAdd for more specific ones.
    871856 * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    872857 * @retval  VERR_NOT_FOUND if no module was found at the specified address.
     
    884869RTDECL(int) RTDbgAsLineAdd(RTDBGAS hDbgAs, const char *pszFile, uint32_t uLineNo, RTUINTPTR Addr, uint32_t *piOrdinal);
    885870
    886 
    887871/**
    888872 * Query a line number by address.
    889873 *
    890  * @returns IPRT status code. See RTDbgModSymbolAddrA for more specific ones.
     874 * @returns IPRT status code. See RTDbgModLineAddrA for more specific ones.
    891875 * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    892876 * @retval  VERR_NOT_FOUND if the address couldn't be mapped to a module.
     
    897881 *                          number and address.
    898882 * @param   pLine           Where to return the line number information.
    899  */
    900 RTDECL(int) RTDbgAsLineByAddr(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE pLine);
     883 * @param   phMod           Where to return the module handle. Optional.
     884 */
     885RTDECL(int) RTDbgAsLineByAddr(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE pLine, PRTDBGMOD phMod);
    901886
    902887/**
    903888 * Query a line number by address.
    904889 *
    905  * @returns IPRT status code. See RTDbgModSymbolAddrA for more specific ones.
     890 * @returns IPRT status code. See RTDbgModLineAddrA for more specific ones.
    906891 * @retval  VERR_INVALID_HANDLE if hDbgAs is invalid.
    907892 * @retval  VERR_NOT_FOUND if the address couldn't be mapped to a module.
     
    913898 * @param   ppLine          Where to return the pointer to the allocated line
    914899 *                          number info. Always set. Free with RTDbgLineFree.
    915  */
    916 RTDECL(int) RTDbgAsLineByAddrA(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE *ppLine);
     900 * @param   phMod           Where to return the module handle. Optional.
     901 */
     902RTDECL(int) RTDbgAsLineByAddrA(RTDBGAS hDbgAs, RTUINTPTR Addr, PRTINTPTR poffDisp, PRTDBGLINE *ppLine, PRTDBGMOD phMod);
    917903
    918904/** @todo Missing some bits here. */
Note: See TracChangeset for help on using the changeset viewer.

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