VirtualBox

Changeset 18174 in vbox


Ignore:
Timestamp:
Mar 24, 2009 11:33:35 AM (16 years ago)
Author:
vboxsync
Message:

fixed VBOX_ASSERT=gdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/VBox/RTAssertShouldPanic-vbox.cpp

    r13306 r18174  
    5353# include <iprt/thread.h>
    5454# include <iprt/asm.h>
     55# include <iprt/param.h>
    5556#endif
    5657
     
    110111        /* Try spawn the process. */
    111112        char szCmd[512];
    112         RTStrPrintf(szCmd, sizeof(szCmd), "%s program %d", pszGdb, RTProcSelf());
     113        char szExecName[RTPATH_MAX];
     114        if (!RTProcGetExecutableName((szExecName), sizeof(szExecName)))
     115            strcpy(szExecName, "");
     116        RTStrPrintf(szCmd, sizeof(szCmd), "%s -p %d %s", pszGdb, RTProcSelf(), szExecName);
    113117        const char *apszArgs[] =
    114118        {
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