VirtualBox

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

IPRT: Changed RTLDRSEG::pchName to pszName and make sure it's always set to something. Started on implementing a codeview reader.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/dbgmod.h

    r46164 r46266  
    196196     */
    197197    DECLCALLBACKMEMBER(int, pfnUnmapPart)(PRTDBGMODINT pMod, size_t cb, void const **ppvMap);
     198
     199    /**
     200     * Reads data from the image file.
     201     *
     202     * @returns IPRT status code, *ppvMap set to NULL on success.
     203     *
     204     * @param   pMod            Pointer to the module structure.
     205     * @param   iDbgInfoHint    The debug info ordinal number hint, pass UINT32_MAX
     206     *                          if not know or sure.
     207     * @param   off             The offset into the image file.
     208     * @param   pvBuf           The buffer to read into.
     209     * @param   cb              The number of bytes to read.
     210     */
     211    DECLCALLBACKMEMBER(int, pfnReadAt)(PRTDBGMODINT pMod, uint32_t iDbgInfoHint, RTFOFF off, void *pvBuf, size_t cb);
    198212
    199213    /**
     
    604618
    605619extern DECLHIDDEN(RTSTRCACHE)           g_hDbgModStrCache;
     620extern DECLHIDDEN(RTDBGMODVTDBG const)  g_rtDbgModVtDbgCodeView;
    606621extern DECLHIDDEN(RTDBGMODVTDBG const)  g_rtDbgModVtDbgDwarf;
    607622extern DECLHIDDEN(RTDBGMODVTDBG const)  g_rtDbgModVtDbgNm;
  • trunk/src/VBox/Runtime/include/internal/ldrPE.h

    r46131 r46266  
    207207#define  WIN_CERT_TYPE_EFI_PKCS115          UINT16_C(0x0ef0)
    208208#define  WIN_CERT_TYPE_EFI_GUID             UINT16_C(0x0ef1)
     209
     210
     211/* For .DBG files. */
     212#define IMAGE_SEPARATE_DEBUG_SIGNATURE  UINT16_C(0x4944)
    209213
    210214
     
    527531typedef WIN_CERTIFICATE const *PCWIN_CERTIFICATE;
    528532
     533
     534/** The header of a .DBG file (NT4). */
     535typedef struct _IMAGE_SEPARATE_DEBUG_HEADER
     536{
     537    uint16_t    Signature;              /**< 0x00 */
     538    uint16_t    Flags;                  /**< 0x02 */
     539    uint16_t    Machine;                /**< 0x04 */
     540    uint16_t    Characteristics;        /**< 0x06 */
     541    uint32_t    TimeDateStamp;          /**< 0x08 */
     542    uint32_t    CheckSum;               /**< 0x0c */
     543    uint32_t    ImageBase;              /**< 0x10 */
     544    uint32_t    SizeOfImage;            /**< 0x14 */
     545    uint32_t    NumberOfSections;       /**< 0x18 */
     546    uint32_t    ExportedNamesSize;      /**< 0x1c */
     547    uint32_t    DebugDirectorySize;     /**< 0x20 */
     548    uint32_t    SectionAlignment;       /**< 0x24 */
     549    uint32_t    Reserved[2];            /**< 0x28 */
     550} IMAGE_SEPARATE_DEBUG_HEADER;          /* size: 0x30 */
     551typedef IMAGE_SEPARATE_DEBUG_HEADER *PIMAGE_SEPARATE_DEBUG_HEADER;
     552typedef IMAGE_SEPARATE_DEBUG_HEADER const *PCIMAGE_SEPARATE_DEBUG_HEADER;
     553
     554
    529555#pragma pack()
    530556
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