VirtualBox

Changeset 46273 in vbox


Ignore:
Timestamp:
May 26, 2013 10:38:33 PM (12 years ago)
Author:
vboxsync
Message:

ldr.h,ldrPE.cpp: Report COFF debug type. Correctly report cbImage for CodeView.

Location:
trunk
Files:
2 edited

Legend:

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

    r46266 r46273  
    481481    /** Microsoft Codeview debug info, in external file (DBG). */
    482482    RTLDRDBGINFOTYPE_CODEVIEW_DBG,
     483    /** Microsoft COFF debug info. */
     484    RTLDRDBGINFOTYPE_COFF,
    483485    /** Watcom debug info. */
    484486    RTLDRDBGINFOTYPE_WATCOM,
     
    530532        } Dwo;
    531533
    532         /** RTLDRDBGINFOTYPE_CODEVIEW_PDB20, RTLDRDBGINFOTYPE_CODEVIEW_DBG */
     534        /** RTLDRDBGINFOTYPE_CODEVIEW, RTLDRDBGINFOTYPE_COFF */
    533535        struct
    534536        {
     
    541543            /** The minor version from the entry. */
    542544            uint32_t    uMinorVer;
    543         } Cv;
     545        } Cv, Coff;
    544546
    545547        /** RTLDRDBGINFOTYPE_CODEVIEW_DBG */
  • trunk/src/VBox/Runtime/common/ldr/ldrPE.cpp

    r46266 r46273  
    11861186            case IMAGE_DEBUG_TYPE_CODEVIEW:
    11871187                DbgInfo.enmType = RTLDRDBGINFOTYPE_CODEVIEW;
     1188                DbgInfo.u.Cv.cbImage    = pModPe->cbImage;
    11881189                DbgInfo.u.Cv.uMajorVer  = paDbgDir[i].MajorVersion;
    11891190                DbgInfo.u.Cv.uMinorVer  = paDbgDir[i].MinorVersion;
     
    12641265                break;
    12651266
     1267            case IMAGE_DEBUG_TYPE_COFF:
     1268                DbgInfo.enmType = RTLDRDBGINFOTYPE_COFF;
     1269                DbgInfo.u.Coff.cbImage    = pModPe->cbImage;
     1270                DbgInfo.u.Coff.uMajorVer  = paDbgDir[i].MajorVersion;
     1271                DbgInfo.u.Coff.uMinorVer  = paDbgDir[i].MinorVersion;
     1272                DbgInfo.u.Coff.uTimestamp = paDbgDir[i].TimeDateStamp;
     1273                break;
     1274
    12661275            default:
    12671276                DbgInfo.enmType = RTLDRDBGINFOTYPE_UNKNOWN;
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