VirtualBox

Ignore:
Timestamp:
May 25, 2020 3:09:24 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138238
Message:

iprt/cdefs.h,*: Introducing RT_FLEXIBLE_ARRAY_EXTENSION as a g++ hack that allows us to use RT_FLEXIBLE_ARRAY without the compiler going all pendantic on us. Only tested with 10.1.0. bugref:9746

File:
1 edited

Legend:

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

    r82968 r84509  
    6767    uint8_t     cchMaxSym;                      /**< 0x0e: Maximum symbol-name length. */
    6868    uint8_t     cchModule;                      /**< 0x0f: Length of the module name. */
     69    RT_FLEXIBLE_ARRAY_EXTENSION
    6970    char        achModule[RT_FLEXIBLE_ARRAY];   /**< 0x10: Module name, length given by cchModule. */
    7071} MAPSYMHDR;
     
    9293    uint16_t    u16Reserved2;                  /**< 0x12: Reserved / unknown.  Often seen holding 0xff00. */
    9394    uint8_t     cchSegName;                    /**< 0x14: Segment name length. */
     95    RT_FLEXIBLE_ARRAY_EXTENSION
    9496    char        achSegName[RT_FLEXIBLE_ARRAY]; /**< 0x15: Segment name, length given by cchSegName. */
    9597} MAPSYMSEGDEF;
     
    122124    uint16_t    cLines;                        /**< 0x08: Number of line numbers in the array. */
    123125    uint8_t     cchSrcFile;                    /**< 0x0a: Length of source filename. */
     126    RT_FLEXIBLE_ARRAY_EXTENSION
    124127    char        achSrcFile[RT_FLEXIBLE_ARRAY]; /**< 0x0b: Source filename, length given by cchSrcFile. */
    125128} MAPSYMLINEDEF;
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