VirtualBox

Changeset 82953 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Feb 3, 2020 12:41:06 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/dbgstackdumpself.cpp: darwin can use dlfcn like linux (as should solaris).

File:
1 edited

Legend:

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

    r76553 r82953  
    5050# include <iprt/utf16.h>
    5151# include <iprt/win/windows.h>
    52 #elif defined(RT_OS_LINUX)
     52#elif defined(RT_OS_LINUX) || defined(RT_OS_DARWIN)
    5353# include <dlfcn.h>
    5454#endif
     
    280280        }
    281281    }
    282 #elif defined(RT_OS_LINUX)
     282#elif defined(RT_OS_LINUX) || defined(RT_OS_DARWIN)
    283283    Dl_info Info = { NULL, NULL, NULL, NULL };
    284284    int rc = dladdr((const void *)uPc, &Info);
    285     if (rc != 0)
     285    if (rc != 0 && Info.dli_fname)
    286286    {
    287287        pMod = (PRTDBGSTACKSELFMOD)RTMemAllocZ(sizeof(*pMod));
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