VirtualBox

Changeset 62098 in vbox for trunk


Ignore:
Timestamp:
Jul 7, 2016 9:24:40 AM (9 years ago)
Author:
vboxsync
Message:

Runtime/solaris: Fix building the coredumper on ancient Solaris versions (used to build additions) as the members of psinfo_t are fewer there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp

    r62096 r62098  
    10361036
    10371037    size_t offLwp         = RT_OFFSETOF(psinfo_t, pr_lwp);
    1038     size_t offLastOnProc  = RT_OFFSETOF(lwpsinfo_t, pr_last_onproc /* last member we care about in lwpsinfo_t */);
     1038    /* last member we care about in lwpsinfo_t is pr_bindpset which is also present on ancient Solaris version we use for
     1039       building the additions. Should be safe enough as we don't need/access members upto or beyond that point anyway. */
     1040    size_t offLastOnProc  = RT_OFFSETOF(lwpsinfo_t, pr_bindpset);
    10391041    if (pSolProc->cbProcInfo >= offLwp + offLastOnProc)
    10401042    {
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